dedecms mysql 1064&nbs…

從服務器上通過dump命令導出文件

在導入到另外的庫時,提示:

MySQL 返回:

#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 'USING BTREE,
  KEY `authorid` (`authorid`) USING BTREE,
  KEY `dateline` (`datel' at line 24

 

經查找是mysql版本的問題,導入的庫是 server version: 5.0.18,導出的庫5.1.45.

打開導出的mysql文件,找到類似
   KEY `authorid` (`authorid`) USING BTREE,
修改成
   KEY `authorid`USING BTREE(`authorid`)

重新導入,問題解決。

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章