您的位置:首页 > 数据库 > MySQL

Error 1044 in MySQL: Access denied when using LOCK TABLES

2014-12-12 16:13 375 查看
解决这个问题,需要管理员给你的用户lock的权限才行,或者用下面的命令:

mysqldump -u username -p database --single-transaction >dump.sql

--single-transaction
Creates a consistent snapshot by dumping all tables in a
single transaction. Works ONLY for tables stored in
storage engines which support multiversioning (currently
only InnoDB does); the dump is NOT guaranteed to be
consistent for other storage engines. While a
--single-transaction dump is in process, to ensure a
valid dump file (correct table contents and binary log
position), no other connection should use the following
statements: ALTER TABLE, DROP TABLE, RENAME TABLE,
TRUNCATE TABLE, as consistent snapshot is not isolated
from them. Option automatically turns off --lock-tables.
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐