我想知道如何从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