Home > Database > Mysql Tutorial > mysql5.5中mysqldump: Got error: 1142: SELECT,LOCK TABL com

mysql5.5中mysqldump: Got error: 1142: SELECT,LOCK TABL com

PHP中文网
Release: 2017-04-01 16:09:03
Original
1826 people have browsed it

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 我们可以mysqldum

在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
Copy after login

我们可以mysqldump中加上参数 --skip-lock-tables 如下实例

mysqldump  -uroot  -p   --skip-lock-tables  performance_schema > performance_schema.sql
Copy after login

 以上就是mysql5.5中mysqldump: Got error: 1142: SELECT,LOCK TABL com的内容,更多相关内容请关注PHP中文网(www.php.cn)!

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template