我試圖通過膩子導入SQL文件如何導入,在命令提示符SQL文件
下面是我的DB DBNAME的細節 - 測試, 密碼 - test123, 用戶名-utest,
我嘗試下面的代碼
mysql -u utest -p test123 test< /home/path/public_html/file.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 utest -p test123 test < file' at line 1
請建議如何導入SQL文件
謝謝Sanjib
在'-p'和'test123'之間不應該有空格 – andrew
http://stackoverflow.com/questions/7316507/how-to-import-a-sql-file?rq=1 –