这主要是因为执行备份的用户权限不足
查看当前用户权限:
show grants for 当前用户名@'localhost';@'localhost';
结果:
可以有两种解决方法
1.使用root用户执行备份
when using LOCK TABLES
2.修改此用户的权限设置
grant all on 数据库名 to 数据库用户@'localhost' identified by "数据库密码";
再次执行备份语句。
这主要是因为执行备份的用户权限不足
查看当前用户权限:
show grants for 当前用户名@'localhost';@'localhost';
结果:
可以有两种解决方法
1.使用root用户执行备份
when using LOCK TABLES
2.修改此用户的权限设置
grant all on 数据库名 to 数据库用户@'localhost' identified by "数据库密码";
再次执行备份语句。