使用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)
解決方法:查詢是否mysqldump版本問題,
mysqldump -V
查詢如果mysqldump版本與現在用的mysql版本不一樣,直接使用全路徑,或到現在版本的mysql /bin文件夾下運行mysqldump即可,
例如:/user/data/mysql-5.7/bin/mysqldump -u root -p ;
或者:cd d:/mysql-5.7 ;
d: ;
mysqldump -u root -p;


