LoginSignup
10
12

More than 5 years have passed since last update.

mysqldumpでGot error: 1044: Access deniedが出た

Last updated at Posted at 2018-08-08

備忘録っす

何をしたら出たの?

# mysqldump -u ユーザ名 -p データベース名 > dump-data.sql

どんなエラーログ?

mysqldump: Got error: 1044: Access denied for user 'ユーザ名'@'localhost' to database データベース名 when using LOCK TABLES

かなしいなあ

原因は?

テーブルロック権限(LOCK TABLES)がないから。

解決

--single-transactionをつける

# mysqldump --single-transaction -u ユーザ名 -p データベース名 > dump-data.sql

別にルートユーザーでやっても一般ユーザーでもいい。

10
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
10
12