MySQL导出performance_schema

来源:互联网 发布:淘宝卖家流量钱包充值 编辑:程序博客网 时间:2024/05/22 09:45

问题:迁移MySQL时导出performance_schema数据库报错:

[root@cncshuangb11d2c ~]# mysqldump -u root -p performance_schema>performance_schema.sqlEnter password: mysqldump: Got error: 1142: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'accounts' when using LOCK TABLES

解决:加上选项--skip-lock-tables

[root@cncshuangb11d2c ~]# mysqldump --skip-lock-tables -u root -p performance_schema>performance_schema.sqlEnter password: 


阅读全文
1 0
原创粉丝点击