[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
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
本文提供了解决MySQL导出所有数据库时出现的特定数据锁定错误的方法,通过添加`--skip-lock-tables`参数来解决在导出过程中遇到的锁定问题。
2578

被折叠的 条评论
为什么被折叠?



