久久青草精品A片狠狠,日韩欧美视频一区二区,亚洲国码AV日韩,国产精品黄在

幫助中心 >  技術知識庫 >  云服務器 >  服務器教程 >  [Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL s

[Err] 1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL s

2016-12-02 17:07:45 9951

[Err] 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 at line 3

MySQL 5.6,Navicat For MySQL 10.0.10 中執行SQL語句時提示此錯誤,在CMD中執行SQL文件中的語句時提示以下錯誤:

D:UsersAven>mysql -uroot -p < F:PublishDatashare_update.sql
Warning: Using a password on the command line interface can be insecure.
ERROR 1064 (42000) at line 4: You have an error in your SQL syntax; check the ma
nual that corresponds to your MySQL server version for the right syntax to use n
ear 'ALTER聽TABLE聽mcu聽CHANGE聽`LOCAL_ID`聽`LOCAL_ID`聽VARchar(50)聽'
at line 1

解決方案:

發現解決該問題的關鍵,是錯誤提示中的空格都是“聽”,這讓我想到是文件的編碼問題,然后做文件編碼的轉換。 
推薦使用Notepad++,編碼轉換非常方便,如圖: 
這里寫圖片描述 
轉換為UTF-8格式,問題依舊,再轉為ANSI格式試試: 
這里寫圖片描述

這里寫圖片描述

把?都替換為空格,保存,再執行,一切OK了。


提交成功!非常感謝您的反饋,我們會繼續努力做到更好!

這條文檔是否有幫助解決問題?

非常抱歉未能幫助到您。為了給您提供更好的服務,我們很需要您進一步的反饋信息:

在文檔使用中是否遇到以下問題: