mysqldump: Got error: 1142
2016-03-29 23:20
716 查看
[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
[root@cactitest ~]#
解决办法,添加参数 --skip-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
相关文章推荐
- plsql developer连接数据库时出现ORA-01033错误的解决方法
- 将HDFS数据通过Sqoop导入MySQL
- PL/SQL developer连接oracle
- hadoop集群配置之hive1.2.0安装部署(远程mysql)
- PL/SQL Developer 在windows7 64位系统下连Oaracle11g64位系统的解决经验
- Mysql日常使用维护命令总结
- mysql授权localhost&%区别及一直授权错误解决办法(安装openstack有感)
- SQL内部培训第一课-gosun
- SQL第一次内部培训-gosun
- Cacti监控MySQL实现过程中碰到的问题解汇总
- 安装配置PLSQL Developer
- 深入浅出MySQL 数据库开发、优化与管理维护(第2版) -- 读书笔记 -- 基础篇
- 【MySQL】[Err] [Imp] 2006 - MySQL server has gone away .
- MySQL权限篇之GRANT OPTION
- MySQLNonTransientConnectionException: No operations allowed after connection closed.
- 【转载南非蚂蚁】MYSQL企业常用架构与调优经验分享
- PLSQL Developer连接远程Oracle数据库
- Pholcus初探
- SQL SERVER 中 GO 的用法2
- SQL SERVER 中 GO 的用法