首页 > 数据库技术 > 详细

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

时间:2017-09-07 11:36:18      阅读:691      评论:0      收藏:0      [点我收藏+]

在进行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 'upmngr' when using LOCK TABLES

原文:http://www.cnblogs.com/bing-yu12/p/7488588.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!