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
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.
相关文章推荐
- mysql -- mysqldump错误:Got error: 1044: Access denied for user ... when using LOCK TABLES (转载)
- mysql -- mysqldump错误:Got error: 1044: Access denied for user ... when using LOCK TABLES
- mysqldump: Got error: 1044: Access denied…when using LOCK TABLES
- mysqldump: 1044 Access denied when using LOCK TABLES
- mysql 无lock tables权限 报Access denied for user when using LOCK TABLES
- mysql备份数据报错(Access denied for user when using LOCK TABLES)
- mysqldump: Got error: 1142: SELECT, LOCK TABLES command denied to user 'root'@'localhost' for table 'accounts' when using LOCK TABLES
- mysqldump: Got error: 1044: Access denied for user 'sunyard'@'%' to database 'fac_demo' when using L
- ubuntu 系统解决mysql连接问题(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password:
- mysqldump: Got error: XX: File ' XXX.MYD' not found (Errcode: 24) when using LOCK TABLES
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- ubuntu mysql root 进入出现ERROR 1044(42000):Access denied for user ''@'localhost' to database 'mysql'
- ubuntu mysql问题 ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YSE)解决
- mysql 以某用户登录错误 ERROR 1045 (28000): Access denied for user 'bill'@'localhost' (using password: YES)
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql'
- ubuntu 系统解决mysql连接问题(ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO))
- MySQL改密码报错:ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)
- ERROR 1044 (42000): Access denied for user ''@'localhost' to database 'mysql
- mysql-->ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
- mysql报ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password)错误或者远程用户不能登录