레드햇 9.0에서 4.1.10a 소스 컴파일을 하고 있는데
하루 종일 헤매다 해결 못하고 질문을 올립니다 ㅠㅠ
1. configure 옵션은 아래와 같이 했습니다
./configure --prefix=/usr/local/mysql
--localstatedir=/usr/local/mysql/data --exec-prefix=/usr
--with-mysql-user=mysql --without-debug
--with-charset=euckr
2. 그런데 클라이언트를 실행하려고 하면 아래와 같은 에러가
나옵니다
mysql: Character set 'euckr' is not a compiled character
set and is not specified in the
'/usr/local/mysql/share/mysql/charsets/Index.xml' file
위의 xml파일 내용을 확인하면
[/usr/local/mysql/share/mysql/charsets/Index.xml]
<charset name="euckr">
<family>Korean</family>
<description>EUC-KR Korean</description>
<alias>euc_kr</alias>
<alias>euc-kr</alias>
<collation name="euckr_korean_ci" id="19"
order="Korean">
<flag>primary</flag>
<flag>compiled</flag>
</collation>
<collation name="euckr_bin" id="85">
<flag>binary</flag>
<flag>compiled</flag>
</collation>
</charset>
위와 같은 내용이 들어 있습니다
3. 다른 캐릭터 셋으로 일단 클라이언트에 접속을 한후 확인
해보면
mysql> show variables like
"%character%";show variables like "%collation%";
+--------------------------+----------------------------------------+
| Variable_name | Value |
+--------------------------+----------------------------------------+
| character_set_client | latin1 |
| character_set_connection | latin1 |
| character_set_database | euckr |
| character_set_results | latin1 |
| character_set_server | euckr |
| character_set_system | utf8 |
| character_sets_dir | /usr/local/mysql/share/mysql/charsets/
|
+--------------------------+----------------------------------------+
7 rows in set (0.05 sec)
+----------------------+-------------------+
| Variable_name | Value |
+----------------------+-------------------+
| collation_connection | latin1_swedish_ci |
| collation_database | euckr_korean_ci |
| collation_server | euckr_korean_ci |
+----------------------+-------------------+
3 rows in set (0.00 sec)
위 처럼 euckr 을 지원 하는것 같은데...
4. 위의 설정에 나온 /usr/local/mysql/share/mysql/charsets/
디렉토리를
직접 확인해 보았습니다.
Index.xml cp1251.xml cp866.xml hp8.xml
latin2.xml swe7.xml
README cp1256.xml dec8.xml keybcs2.xml latin5.xml
armscii8.xml cp1257.xml geostd8.xml koi8r.xml latin7.xml
ascii.xml cp850.xml greek.xml koi8u.xml macce.xml
cp1250.xml cp852.xml hebrew.xml latin1.xml macroman.xml
위와 같은 목록은 있는데 .. euckr 은 없네요...ㅠㅠ
5. mysql 클라이언트 내에서 아래와 같이 실행 해보면 euckr이
있습니다 --;
mysql> SHOW CHARACTER SET;
+----------+-----------------------------+---------------------+--------+
| Charset | Description | Default collation | Maxlen |
+----------+-----------------------------+---------------------+--------+
| dec8 | DEC West European | dec8_swedish_ci | 1 |
| cp850 | DOS West European | cp850_general_ci | 1 |
| hp8 | HP West European | hp8_english_ci | 1 |
| koi8r | KOI8-R Relcom Russian | koi8r_general_ci | 1 |
| latin1 | ISO 8859-1 West European | latin1_swedish_ci | 1 |
| latin2 | ISO 8859-2 Central European | latin2_general_ci | 1
|
| swe7 | 7bit Swedish | swe7_swedish_ci | 1 |
| ascii | US ASCII | ascii_general_ci | 1 |
| hebrew | ISO 8859-8 Hebrew | hebrew_general_ci | 1
| |
euckr | EUC-KR Korean | euckr_korean_ci | 2 | | koi8u |
KOI8-U Ukrainian | koi8u_general_ci | 1 |
| greek | ISO 8859-7 Greek | greek_general_ci | 1 |
| cp1250 | Windows Central European | cp1250_general_ci | 1 |
| latin5 | ISO 8859-9 Turkish | latin5_turkish_ci | 1 |
| armscii8 | ARMSCII-8 Armenian | armscii8_general_ci | 1 |
| utf8 | UTF-8 Unicode | utf8_general_ci | 3 |
| cp866 | DOS Russian | cp866_general_ci | 1 |
| keybcs2 | DOS Kamenicky Czech-Slovak | keybcs2_general_ci | 1
|
| macce | Mac Central European | macce_general_ci | 1 |
| macroman | Mac West European | macroman_general_ci | 1 |
| cp852 | DOS Central European | cp852_general_ci | 1 |
| latin7 | ISO 8859-13 Baltic | latin7_general_ci | 1 |
| cp1251 | Windows Cyrillic | cp1251_general_ci | 1 |
| cp1256 | Windows Arabic | cp1256_general_ci | 1 |
| cp1257 | Windows Baltic | cp1257_general_ci | 1 |
| binary | Binary pseudo charset | binary | 1 |
| geostd8 | GEOSTD8 Georgian | geostd8_general_ci | 1 |
+----------+-----------------------------+---------------------+--------+
27 rows in set (0.00 sec)
euckr 문자셋이 컴파일이 안된건가요? --;
비슷한 현상을 겪어 보셨거나
도움 되는 말씀 기다리겠습니다....^^
|