MySQL导出performance_schema

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

[root@cncshuangb11d2c ~]# mysqldump -u root -p performance_schema>performance_schema.sql
Enter 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.sql
Enter password: 


你可能感兴趣的:(MySQL)