数据库 – mysqldump错误LOCK TABLES

前端之家收集整理的这篇文章主要介绍了数据库 – mysqldump错误LOCK TABLES前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
当我执行 mysqldump时,我得到以下错误
MysqLdump -u root -ppassword --databases information_schema > test.sql
MysqLdump: Got error: 1044: Access denied for user 'root'@'localhost' to database 'information_schema' when using LOCK TABLES

我怎样才能解决这个问题?

解决方法

如果必须转储information_schema数据库,则向其添加–skip-lock-tables.

MysqLdump does not dump the
INFORMATION_SCHEMA database by
default. As of MysqL 5.1.38,MysqLdump
dumps INFORMATION_SCHEMA if you name
it explicitly on the command line,
although currently you must also use
the –skip-lock-tables option. Before
5.1.38,MysqLdump silently ignores INFORMATION_SCHEMA even if you name it
explicitly on the command line.

http://dev.mysql.com/doc/refman/5.1/en/mysqldump.html

原文链接:https://www.f2er.com/mssql/81384.html

猜你在找的MsSQL相关文章