完整的bug信息:mysql
ERROR 1064 (42000): 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 'mysqldump -uroot -p ylt>ylt.sql' at line 1
錯誤緣由是我誤覺得mysqldum是sql命令,錯誤寫入了mysql命令中linux
mysql> mysqldump -uroot -p ylt>ylt.sql;
後才發覺mysqldump是linux命令sql
遂退出mysql,在終端寫入spa
[root@localhost ~]# mysqldump -uroot -p ylt>ylt.sql
這樣就對了code