這是我用過的命令:如何在MySQL 5.2中進行備份和恢復?
mysql> mysql -u root -p -h HOST sample < mysqldump.sql;
但我如下遇到了一個錯誤:
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 'mysql -u root -p -h HOST sample < mysqldump.sql' at line 1
希望你能幫助我嗎?
謝謝你的回覆。這幫了我 – Gapchoos 2012-07-25 09:24:45