I run the following simple python 2.7 code;
dumpcmd = "mysqldump -u " + DB_USER + " -p" + DB_USER_PASSWORD + " " + db + " > " + TODAYBACKUPPATH + "/" + db + ".sql"
os.system(dumpcmd)
The error I got is as follows;
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)
The strange thing is that my python code does not contain anything like SET OPTION SQL_QUOTE_SHOW_CREATE=1 as mentioned in the error. Can someone advise?