Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
如果我只有选择权限,如何获取数据库转储。当我运行 mysqldump 命令时,它给出了拒绝访问错误。
我收到以下错误:mysqldump: Got error: 1044: Access denied for user 'sangeeta'@'%' to database 'abc' when doing LOCK TABLES
谢谢!!
两种选择:
您确实会收到拒绝访问错误。错误消息很清楚,您没有选择权限。
您会收到一条消息,表明您无权锁定表。
2号解决方案:
使用--lock-tables=false非 InnoDB 表的--single-transaction选项或 InnoDB 表的选项。
--lock-tables=false
--single-transaction