[root@zyiz.net]# mysqldump -u dbuser -ppass db > db.sql mysqldump: Got error: 1044: Access denied for user 'dbuser'@'localhost' to database 'db' when using LOCK TABLES 解决一:
加上-skip-lock-tables选项即可。即:
[root@zyiz.net]# mysqldump -u dbuser -ppass db --skip-lock-tables > db.sql 解决2: