导出sql出现的问题

在linux下,用mysql的导出语句:

mysqldump -u root -pPasswd table >/home/lsf/test.sql
出现了

Got error: 1449: The user specified as a definer ('root'@'') does not exist when using LOCK TABLES

的错误


只要给root用户再添加一个对全部host都有可以访问的权限

操作如下:


登陆mysql


mysql -u root -pPasswd


mysql >grant all privileges on *.* to root@"%" identified by "Passwd";


mysql >flush privileges;

posted @ 2012-12-27 11:10  小狸的窝  阅读(117)  评论(0)    收藏  举报