现在的位置: 首页 > 综合 > 正文

使用mysqldump备份时出现“when using LOCK TABLES”错误的解决方法

2013年02月02日 ⁄ 综合 ⁄ 共 189字 ⁄ 字号 评论关闭

这主要是因为执行备份的用户权限不足

查看当前用户权限:

show grants for 当前用户名@'localhost';@'localhost';

结果:

可以有两种解决方法

1.使用root用户执行备份

when using LOCK TABLES

2.修改此用户的权限设置

grant all on 数据库名 to 数据库用户@'localhost' identified by "数据库密码";

再次执行备份语句。

【上篇】
【下篇】

抱歉!评论已关闭.