我想知道如何從mysql數據庫創建備份並恢復它。 我想在我的Java應用程序中使用它。我怎麼能從mysql數據庫備份和恢復日期
mysql> mysql -u root -p 123 -h hostname club <dumpfile.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 mehdi -h hostname club < dumpfile.sql' at line 1
您需要從命令行執行此操作,而不是從mySQL內執行 – 2011-04-26 16:32:52