Home > Database > Mysql Tutorial > mysql 5.5中mysqldump: Got error: 1142: SELECT,LOCK TABL comm_MySQL

mysql 5.5中mysqldump: Got error: 1142: SELECT,LOCK TABL comm_MySQL

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-01 13:34:10
Original
1176 people have browsed it

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
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
Latest Issues
php - localhost shows 404
From 1970-01-01 08:00:00
0
0
0
php - localhost cannot access a certain folder
From 1970-01-01 08:00:00
0
0
0
localhost and 127.0.0.1
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template