当前位置:Gxlcms > 数据库问题 > mysqldump: Got error: 1044: Access denied for user 'backupuser'@'%' to database 'upmngr' when using LOCK TABLES

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

时间:2021-07-01 10:21:17 帮助过:17人阅读

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

标签:ase   ror   lease   用户   please   denied   password   class   blog   

人气教程排行