MySQL Server Error:Unknown character set: 'gbk' ( 1115 )

/usr/local/etc/rc.d/mysql-server.sh stop
cd /usr/ports/databases/mysql50-server
make deinstall clean

make WITH_CHARSET=gbk \
WITH_XCHARSET=all \
SKIP_DNS_CHECK=yes \
BUILD_OPTIMIZED=yes \
BUILD_STATIC=yes
make install clean
再次增加参数,然后/usr/local/bin/mysql_install_db
/usr/local/etc/rc.d/mysql-server.sh start

文章分类: 
文章标签: 

评论

--with-extra-charsets=complex 安装所有字符,有这个就足够了。