Press "Enter" to skip to content

mysql — mysqldump错误:Got error: 1044: Access denied for user … when using LOCK TABLES

使用mysqldump备份数据时如果碰到如下错误提示:

Got error: 1044: Access denied for user ... when using LOCK TABLES

那可能是你用来备份的数据库用户没有lock table的权限,可以换一个权限更高的用户,或者使用mysqldump的另一个选项:--single-transaction

mysqldump -uyourusername -pyourpassword --single-transaction yourdb > yourdb.sql

注:本文转自https://blog.csdn.net/xinhaozheng/article/details/5646621

Be First to Comment

发表回复

您的电子邮箱地址不会被公开。 必填项已用*标注