Skip to main content

mysqldumpでAccess denied問題が発生

さくらインターネットのレンタルサーバーなどで、mysqldump を実行する際に以下のエラーが発生します。

Error: 'Access denied; you need (at least one of) the PROCESS privilege(s) for this operation' when trying to dump tablespaces

回避案

通常は必要な権限をGrantすれば解消するのはずですが、レンタルサーバーなどの場合権限を変更できない時もあります。

その場合はデータのみ(テーブル情報)が必要なければ、以下のオプションを追加すると問題を解消できます。

--no-tablespaces

コマンド例

% mysqldump -h <ホスト名> -u <ユーザー名> -p <データベース名> --no-tablespaces > 出力先file.sql