日々精進

新しく学んだことを書き留めていきます

MySQL WorkbenchでDBをExport/Importしようとすると「ERROR 1227 (42000) at line 20: Access denied; you need (at least one of) the SUPER privilege(s) for this operation」エラー

MySQL WorkbenchでExportしたデータをImportすると以下のエラーがでた。

20:44:03 Restoring C:\Dump20200701.sql
Running: mysql.exe --defaults-file="c:\users\me\appdata\local\temp\tmppx6bb3.cnf"  --protocol=tcp --host=localhost --user=usr--port=3309 --default-character-set=utf8 --comments  < "C:\\Dump20200701.sql"
ERROR 1227 (42000) at line 20: Access denied; you need (at least one of) the SUPER privilege(s) for this operation
Operation failed with exitcode 1
20:44:05 Import of C:\Dump20200701.sql has finished with 1 errors

ググると以下の情報があったのでlog_bin_trust_finction_creatorsをONにしてみたが、直らず。。

qiita.com

mysql/mysqldumpコマンドをコンソールから実行してdumpを取ってImportするとうまくいった。 MySQL Workbenchのバグだったっぽい。