您的位置:首页 > 其它

【转】 The user specified as a definer ('root'@'') does not exist when using LOCK TALBE

2013-10-23 17:09 671 查看
在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

这种令人作呕的错误,windows下从没碰到过。

搞了半天,总算弄出来了。。

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

操作如下:

登陆mysql

mysql -u root -pPasswd

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

mysql >flush privileges;

==============

END~! KO.

再进行导出就可以执行了。
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐