Import CSV file directly into MySQL:
直接下MYSQL指令 先建立資料表以及欄位,再匯入scv檔案:
load data local infile 'D:/AppServ/www/test/geoip/ip2country/GeoIPCountryWhois.csv' into table tblUserIP fields terminated by ','
enclosed by '"'
lines terminated by '\n'
(uniqName, uniqCity, uniqComments,aname,bname,cname)

cabuchi 發表在 痞客邦 留言(0) 人氣()

ERROR 1153 (08S01) at line 3802: Got a packet bigger than 'max_allowed_packet' by tes
當上傳的.sql檔案過大,
受MYSQL參數max_allowed_packet(預設為1048576K)的限制,所以會產生上面的錯誤訊息。
(1G = 1*1024*1024K)

cabuchi 發表在 痞客邦 留言(0) 人氣()

1
Blog Stats
⚠️

成人內容提醒

本部落格內容僅限年滿十八歲者瀏覽。
若您未滿十八歲,請立即離開。

已滿十八歲者,亦請勿將內容提供給未成年人士。