使用mysqldump 備份時(shí),報(bào)錯(cuò)
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)
解決方法:查詢是否mysqldump版本問(wèn)題,
mysqldump -V
查詢?nèi)绻鹠ysqldump版本與現(xiàn)在用的mysql版本不一樣,直接使用全路徑,或到現(xiàn)在版本的mysql /bin文件夾下運(yùn)行mysqldump即可,
例如:/user/data/mysql-5.7/bin/mysqldump -u root -p ;
或者:cd d:/mysql-5.7 ;
d: ;
mysqldump -u root -p;


