【Azure】Azure Database for MySQLでmysqldumpでリストアしようとしたときに「ERROR 1227 (42000) at line 18: Access denied; you need (at least one of) the SUPER privilege(s) for this operation」と出る

Azure Database for MySQLでは、root権限では実行できない仕組みになっている。
ダンプファイルをroot権限で取得している場合、一般ユーザーAAAで取得し、リストア時もAAAユーザーAAAで実行すると回避できる
1 |
mysql -uAAA@container-mysql -p'T123' test -h mysql.mysql.database.azure.com |
この設定必要だったかもしれない