Please do not use the root user for mysqldump backups. Just create a new user with the following minimal MySQL privileges:
MYSQLDUMP –SINGLE-TRANSACTION (INNODB)
CREATE USER 'backup'@'localhost' IDENTIFIED BY 'secret'; GRANT SELECT, SHOW VIEW, RELOAD, REPLICATION CLIENT, EVENT, TRIGGER ON *.* TO 'backup'@'localhost';
MYSQLDUMP –LOCK-ALL-TABLES (MYISAM)
GRANT LOCK TABLES ON *.* TO 'backup'@'localhost';
Leave a Reply