I was trying to create a dump file from my MySQL database, but when I try it always gives me this error
Operation failed with exitcode 2
16:06:07 Dumping proactivetraindb (userstate)
Running: mysqldump.exe --defaults-extra-file="h:\docume~1\anarita\locals~1\temp\tmpde5rwy.cnf" --user=root --max_allowed_packet=1G --host=localhost --port=3306 --default-character-set=utf8 "proactivetraindb" "userstate"
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)
The version of MySQl is 5.6.10 but the version of MySQLDump is 5.5.16
Does someone know how to solve this?
If you are on Linux, update mysql-client to latest version. On Ubuntu:
did the job for me.
Mine got updated to 5.5 and mysqldump now works for me. This is on Amazon RDS with MySQL 5.6.x
If you are using
Window 10
. YourMysql server
would have been installed inC:\Program Files\MySQL
directory and rest all components are installed inC:\Program Files (x86)\MySQL
. Go toMySql Workbench
>Edit
>Preferences
. A window will open, click the Administrator tab and mention the path of yourmysqldump.exe
(which is present inC:\Program Files\MySQL
). Restart your workbench.Thanks, Happy coding!!
I had the same error in MySQL Workbench.
It should work.