3版資料庫環境
Client characterset: latin1
Server characterset: latin1
[作法一]、
直接複製目錄方式,再將mysql4 server與client連線方式設成utf8,雖然可行,
但有"had no or invalid character set, and default character set is
multi-byte, so character column sizes may have changed"
LOG錯誤訊息,參考了http://achi.idv.tw/modules.php?name=Forums&file=
viewtopic&t=1287作法,但無效。
於是,
[作法二]、
將mysql3 client連線方式設成utf8,用四版的mysqldump出三版資料,匯入四版,
參考 http://blog.pixnet.net/post/origin2/1295540,
server與client連線方式utf8,
而 –default-character-set=latin1參數沒什麼差別,
[結論]
大致上亂碼尚 OK
四版資料庫環境
character_set_client utf8
character_set_connection utf8
character_set_database utf8
character_set_results utf8
character_set_server utf8
character_set_system utf8
留言