I had the same problem and found a solution. I used the MySQL Workbench to develop my database, and I created triggers there. They all used the syntax CREATE TRIGGER trigger_nameexcept for one: CREATE TRIGGER dbname.trigger_name(it was my mistake). Mysqldump output included all triggers the same way: only one had a database name.
Mysqldump uses your original instructions CREATE TRIGGER, which you can see through SHOW CREATE TRIGGER. If you have a trigger defined with the database name, just replace it (drop and create) with one without dbname.
ducin source
share