mysqldumpで Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces
Category: MySQL
2020/05/30
問題
mysqldumpしようとしたらエラーになりました。ダンプ取れないですか?
Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

答え
MySQL5.5までは以下でエラーにはなりませんでした。
mysqldump -h ホスト名 -u ユーザー名 -p データベース名 > バックアップ先ファイル名
MySQL5.7では、PROCESS特権が必要になるため、権限がないとエラーになります。
テーブルスペースの情報が必要ない場合は --no-tablespaces オプションでエラーを回避できます。
mysqldump --no-tablespaces -h ホスト名 -u ユーザー名 -p データベース名 > バックアップ先ファイル名
コメント