mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database 'upmngr' when using LOCK TABLES

在进行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

posted @ 2017-09-07 10:56  -起风了🪐  阅读(1756)  评论(0编辑  收藏  举报