mysql 4.0.x ¹öÀü¿¡¼ 4.1.x ¹öÀü°ú character-setÀÌ ´Þ¶ó¼ µ¥ÀÌÅ͸¦ ÀÌÀüÇÒ¶§ °í»ýÇϽô ºÐµéÀÌ ¸¹½À´Ï´Ù. 4.0.x ¹öÀü¿¡¼ 4.1.x ¹öÀüÀ¸·Î ¾÷±×·¹À̵å ÇÏ´Â ¹®¼´Â ¸¹Áö¸¸, ´Ù¿î±×·¹À̵忡 °üÇÑ ¹®¼´Â º°·Î ¾ø¾î¼ Àúµµ °í»ýÀ» Á» Çß½À´Ï´Ù. ^^
1. 4.1¿¡¼ ´ýÇÁ ¹ÞÀ»¶§ --default-character-set=euckr ¿É¼ÇÀ» ÁÖ°í ´ýÇÁ ¹Þ´Â´Ù.
# /usr/local/mysql/bin/mysqldump --default-character-set=euckr -u xxx -p xxx > xxx.sql
2. ´ýÇÁ¹ÞÀº xxx.sql ÆÄÀÏÀ» vi ÆíÁý±â·Î ¿°í ÆíÁý
" DEFAULT CHARSET=euckr" »èÁ¦ :%s/ DEFAULT CHARSET=euckr//g " collate euckr_bin" »èÁ¦ :%s/ collate euckr_bin//g euckr -> euc_kr·Î º¯°æ :%s/euckr/euc_kr/g
3. xxx.sqlÀ» 4.0ÀÌÇÏ ¹öÀü¿¡¼ º¹±¸
# /usr/local/mysql/bin/mysql -u xxx -p xxx < xxx.sql
|
|