LoginSignup
5
5

More than 5 years have passed since last update.

Ubuntu12.04のMySQLクライアントをmysql5.5からmysql5.6にする

Posted at

リモートのMySQLサーバに対して mysqldump を実行しようとしたら、ローカルのmysqlクライアントのバージョンが5.5でサーバが5.6だと mysqldump がエラーになるという状況に遭遇。

下記の様なエラーが発生します。

mysqldump: Couldn't execute 'SET OPTION SQL_QUOTE_SHOW_CREATE=1': You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'OPTION SQL_QUOTE_SHOW_CREATE=1' at line 1 (1064)

というわけで、MySQLクライアントのバージョンをあげて対処することに。

ググるといろいろややこしそうな方法がいっぱいヒットするが、たぶん下記が一番手軽だと思われる。

sudo apt-get remove mysql-client
sudo add-apt-repository ppa:ondrej/mysql
sudo apt-get update
sudo apt-get install mysql-client-5.6
5
5
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
5
5