File '/usr/share/mysql/charsets/?.conf' not found
时间:2007-09-04 来源:zw2002
File '/usr/share/mysql/charsets/?.conf' not found (Errcode: 2)
Character set '#33' is not a compiled character set and is not specified in the
'/usr/share/mysql/charsets/Index' file 说明一下,mysql一般语言默认的在/usr/local/mysql/share/mysql/charsets目录下,而报错的是/usr/share/mysql/charsets/这个目录
cd /usr/share/mysql/
ln -s /usr/local/mysql/share/mysql/charsets /usr/share/mysql/charsets
vi Index
[code]
# sql/share/charsets/Index
#
# This file lists all of the available character sets. Please keep this
# file sorted by character set number. big5 1
czech 2
dec8 3
dos 4
german1 5
hp8 6
koi8_ru 7
latin1 8
latin2 9
swe7 10
usa7 11
ujis 12
sjis 13
cp1251 14
danish 15
hebrew 16
# The win1251 character set is deprecated. Please use cp1251 instead.
win1251 17
tis620 18
euc_kr 19
estonia 20
hungarian 21
koi8_ukr 22
win1251ukr 23
gb2312 24
greek 25
win1250 26
croat 27
gbk 33
cp1257 29
latin5 30
latin1_de 31
[/code] 上面就是我的index的内容,报错的是33,说明33号没有,就给加上了,见上面.
然后重试还报一个没有gbk.conf的错误。
ln -s hp8.xml gbk.conf
随意找个xml文件做一个连接,再试就可以了。
Character set '#33' is not a compiled character set and is not specified in the
'/usr/share/mysql/charsets/Index' file 说明一下,mysql一般语言默认的在/usr/local/mysql/share/mysql/charsets目录下,而报错的是/usr/share/mysql/charsets/这个目录
cd /usr/share/mysql/
ln -s /usr/local/mysql/share/mysql/charsets /usr/share/mysql/charsets
vi Index
[code]
# sql/share/charsets/Index
#
# This file lists all of the available character sets. Please keep this
# file sorted by character set number. big5 1
czech 2
dec8 3
dos 4
german1 5
hp8 6
koi8_ru 7
latin1 8
latin2 9
swe7 10
usa7 11
ujis 12
sjis 13
cp1251 14
danish 15
hebrew 16
# The win1251 character set is deprecated. Please use cp1251 instead.
win1251 17
tis620 18
euc_kr 19
estonia 20
hungarian 21
koi8_ukr 22
win1251ukr 23
gb2312 24
greek 25
win1250 26
croat 27
gbk 33
cp1257 29
latin5 30
latin1_de 31
[/code] 上面就是我的index的内容,报错的是33,说明33号没有,就给加上了,见上面.
然后重试还报一个没有gbk.conf的错误。
ln -s hp8.xml gbk.conf
随意找个xml文件做一个连接,再试就可以了。
相关阅读 更多 +