[SQL ] 無法匯入sql檔案

作者: kuoll (kuoll)   2015-05-09 19:35:22
資料庫名稱: MySQL
資料庫版本: 5.5.33
內容/問題描述:
我想匯入一個含有mysql指令的外部檔案 test.sql
若是使用phpMyadmin的import功能可以順利匯入
但是下指令 source test.sql
會顯示錯誤訊息
#1064 - 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
'source test.sql' at line 1
請問是我對source的使用方式錯誤?
還是這版本mysql不支援source指令?
有其它指令可替代嗎?
作者: s9714635 (Blueeyes)   2015-05-17 11:50:00
錯誤訊息很說明了,沒有source的指令不是嗎?

Links booklink

Contact Us: admin [ a t ] ucptt.com