I have a MySQL user called a dump with the following perms:
GRANT USAGE ON *.* TO 'dump'@'%' IDENTIFIED BY ... GRANT SELECT, LOCK TABLES ON `mysql`.* TO 'dump'@'%' GRANT SELECT, LOCK TABLES ON `myschema`.* TO 'dump'@'%'
I want to dump all data (triggers and procedures included) using a dump user. I call mysqldump as follows:
mysqldump -u dump -p --routines --triggers --quote-names --opt \ --add-drop-database --databases myschema > myschema.sql
Everything is fine with the uploaded file, with the exception of triggers , they are missing !!
Triggers are reset correctly if I try mysqldump with MySQL root user:
mysqldump -u root -p --routines --triggers --quote-names --opt \ --add-drop-database --databases myschema > myschema.sql
So, I think this is a problem with perms ... what are the additional grants that I need MySQL MySQL to do a full dump correctly?
database mysql mysqldump database-backups grant
Emilio Nicolás Dec 28 '11 at 17:10 2011-12-28 17:10
source share