mysqldump -uroot -pPasswd DBName >/home/lsf/DB_Backup.sqlmysql
報錯,顯示:sql
Got error: 1449: The user specified as a definer ('root'@'') does not exist when using LOCK TABLES
ide
或者直接:the user specified as a definer ('root'@'') does not existci
解決辦法:it
給root用戶再添加一個對所有host都有能夠訪問的權限:
class
mysql -uroot -pPasswd
權限
mysql >grant all privileges on *.* to root@"%" identified by "Passwd";
error
mysql >flush privileges;
di