mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database '

Posted DC Technology Stack

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database '相关的知识,希望对你有一定的参考价值。

在进行mysql备份的时候:

sudo /usr/bin/mysqldump -ubackupuser -pdbpassword --database upmngr >/tmp/`date ‘+%Y%m%d%H%M%S‘`.log

出现下面的错误提示:

Warning: Using unique option prefix database instead of databases is deprecated and will be removed in a future release. Please use the full name instead.
mysqldump: Got error: 1044: Access denied for user backupuser@% to database upmngr when using LOCK TABLES

大概意思就是在锁表的的时候没有权限操作

对于我的backupuser 备份用户我只授予了select的权限。

步骤如下:

  

insert

。。。。

 

最终的解决方案:

--skip-lock-tables

以上是关于mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database '的主要内容,如果未能解决你的问题,请参考以下文章

mysqldump: Got error: 1102: Incorrect database nam

mysqldump Got error 1045 Access denied for user 'roor' 'l

(转)mysqldump: Got error: 1556: You can't use locks with log tables.

mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database '

mysqldump: Got error: 1449: The user specified as a definer ('user'@'%') does not ex

mysqldump: Got error: 1556: You can't use locks with log tables. when using LOCK TABLES