使用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

相关文章:

  • 2022-12-23
  • 2022-01-23
  • 2021-07-29
  • 2021-08-01
  • 2021-08-01
  • 2021-08-01
  • 2021-12-02
  • 2022-01-24
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2021-09-19
  • 2022-12-23
  • 2021-05-20
  • 2021-07-17
相关资源
相似解决方案