您的位置:首页 > 数据库 > SQL

mysqldump: Got error: 1142

2016-03-29 23:20 716 查看
[root@cactitest ~]# mysqldump -uroot -p --default-character-set=utf8  --all-databases  >alldb.sql

Enter password: 

-- Warning: Skipping the data of table mysql.event. Specify the --events option explicitly.

mysqldump: Got error: 1142: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'accounts' when using LOCK TABLES
[root@cactitest ~]# 

解决办法,添加参数 --skip-lock-tables
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: