MySQL Workbench 'mysqldump Version Mismatch'
Workbenchでデータのエクスポートを行ったところ、下記のエラーが出ました。
解決方法をメモしておきます。
環境
エラーの内容
/Applications/MySQLWorkbench.app/Contents/MacOS/mysqldump is version 5.7.9, but the MySQL Server to be dumped has version 10.0.17. Because the version of mysqldump is older than the server, some features may not be backed up properly. It is recommended you upgrade your local MySQL client programs, including mysqldump to a version equal to or newer than that of the target server. The path to the dump tool must then be set in Preferences -> Administrator -> Path to mysqldump Tool:
ローカルのmysqldump Toolのバージョンがサーバーと合っていないことが原因のようです。
サーバーの version 10.0.17. ということで、ローカルにMariaDBをインストールします。(Homebrewを使っています。)
ローカルにMariaDBをインストール
$ brew install mariadb ==> Downloading https://homebrew.bintray.com/bottles/mariadb-10.1.14.yosemite.bottle.tar.gz ######################################################################## 100.0% ==> Pouring mariadb-10.1.14.yosemite.bottle.tar.gz ==> Caveats A "/etc/my.cnf" from another install may interfere with a Homebrew-built server starting up correctly. To connect: mysql -uroot To have launchd start mariadb now and restart at login: brew services start mariadb Or, if you don't want/need a background service you can just run: mysql.server start ==> Summary 🍺 /usr/local/Cellar/mariadb/10.1.14: 573 files, 131.6M
Workbenchのmysqldump Tool のパスを設定する
インストールが完了したら
MySQLWorkbench -> Preferences -> Administrator -> Path to mysqldump Tool:
に、
/usr/local/Cellar/mariadb/10.1.14/bin/mysqldump
と入力すればOKです。
以上です。
こちらの記事を参考にしました。