mysqldump: Got error: 1449: The user specified as a definer

备份数据库遇到如下的错误,我遇到了很多次,但是每次都忘记是怎么解决的了,这次记下来
mysqldump: Got error: 1449: The user specified as a definer ('userA
'@'IPB') does not exist when using LOCK TABLES
解决方法就是
grant all privileges on *.* to 'userA'@'IPB' identified by 'pwd';

你可能感兴趣的:(MysqlDump)