当前位置:Gxlcms > mysql > mysql5.5中mysqldump:Goterror:1142:SELECT,LOCKTABLcomm_MySQL

mysql5.5中mysqldump:Goterror:1142:SELECT,LOCKTABLcomm_MySQL

时间:2021-07-01 10:21:17 帮助过:32人阅读

mysqldump

bitsCN.com


mysql 5.5中mysqldump: Got error: 1142: SELECT,LOCK TABL command denied to user 'root'@'localhost' fo解决

在mysql5.5中,增加了performance_schema,当我们进行mysqldump的时候,会报如下错误信息:

mysqldump: Got error: 1142: SELECT,LOCK TABL command denied to user 'root'@'localhost' for table 'cond_instances' when using LOCK TABLES

我们可以mysqldump中加上参数 --skip-lock-tables

如下实例

mysqldump -uroot -p --skip-lock-tables performance_schema > performance_schema.sql

bitsCN.com

人气教程排行