Re: [系統] linux下mysql匯入.sql檔
※ 引述《Falldog (嘿嘿~)》之銘言:
: 我將myfile這個sql檔匯入mysql中
: mysql lifetype -ufalldog -pxxxx < myfile.sql
: 結果卻出現了問題
: ERROR 1064 (42000) at line 331: 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 '
: 我檢查了一下 發現出錯的這行句子裡 ''中間有個「功」字
: 他看到「功」就直接視為字串'結束了
: 請問要怎麼解決這個問題啊???
: >_<
把table都改成utf-8
把myfile.sql用windows的notepad開啟
另存時選UTF-8
再用轉好的myfile.sql匯入
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 59.121.25.92
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 3 之 4 篇):