Database Administrators Stack Exchange is a question and answer site for database professionals who wish to improve their database skills and learn from others in the community. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I did upgrade the MySQL server from 5.5 to 5.6

I am trying to take dump for a table like this

 mysqldump -uroot -p dba admin > D:\admin.sql

But it gets following error

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


mysqldump verison is 5.5.30.

share|improve this question

migrated from May 16 '13 at 7:24

This question came from our site for professional and enthusiast programmers.

I suspect you updated your server but forgot to update the clients. What is the version of mysqldump? – altmannmarcelo May 16 '13 at 7:37

Some information can be found in SET Syntax and this bug

The SET statement assigns values to different types of variables that affect the operation of the server or your client. Older versions of MySQL employed SET OPTION, but this syntax is deprecated in favor of SET without OPTION.

How to fix:

if the problem happen when you are creating the dump(your case): upgrade you MySQL client tools to the same version of your MySQL server, in this case, 5.6

If the problem happen when you are restoring the dump: in the beginning of the file, you have some SET OPTION statements, edit your dump, and change all instances of SET OPTION to SET SESSION like described here

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.