phpmyadmin icon indicating copy to clipboard operation
phpmyadmin copied to clipboard

Exported Triggers not usable for import again

Open Up2Boat opened this issue 3 years ago • 2 comments

Describe the bug

When I try to export all my triggers for any database schema, no delimiter is added to the output. Because of this it's impossible to import those triggers again.

Why do I need this? Because I needed to change the creator (user) of that triggers. The initial one was removed and no updates have been possible on that database.

To Reproduce

Steps to reproduce the behavior:

  1. Go to a database with many triggers
  2. Click on menu item 'Trigger'
  3. Select all trigger on very end of the page
  4. Klick export on the very end of page

Expected behavior

A sql file is downloaded OR the modal which opens has delimiters in generated sql code.

Screenshots

none.

Server configuration

phpMyAdmin: Versionsinformationen: 5.1.1 Operating system: Linux Ubuntu Server: Localhost via UNIX socket Server-Typ: MariaDB Server-Verbindung: SSL wird nicht verwendet Dokumentation Server-Version: 10.2.39-MariaDB-1:10.2.39+maria~bionic-log - mariadb.org binary distribution Protokoll-Version: 10 Benutzer: admin@localhost Server-Zeichensatz: UTF-8 Unicode (utf8mb4) nginx/1.20.1 Datenbank-Client Version: libmysql - mysqlnd 7.4.26 PHP-Erweiterung: mysqli Dokumentation curl Dokumentation mbstring Dokumentation PHP-Version: 7.4.26

Client configuration

  • Browser: Chrome
  • Operating system: Windows 10

Additional context

none.

Up2Boat avatar Jan 10 '22 15:01 Up2Boat

Hi @Up2Boat

Could you please try the latest 5.1 version in development (phpMyAdmin 5.1+snapshot) and let me know if it works better ?

williamdes avatar Jan 10 '22 17:01 williamdes

Ran into this just now, still happens in 5.2.3 It is missing DELIMITER $$ at the start and $$ after each exported trigger.

M393 avatar Nov 14 '25 09:11 M393