October 26, 2012

[MySQL 调试] 编译mysqld缺少gb2312的问题

最近在安装Percona5.5.18版本MySQL时,发现字符集不全,编译参数如下 CFLAGS=”-O3 -g -fno-exceptions -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing” CXX=gcc CXXFLAGS=”-O3 -g -fno-exceptions -fno-rtti -static-libgcc -fno-omit-frame-pointer -fno-strict-aliasing” export CFLAGS CXX CXXFLAGS cmake . \ -DCMAKE_BUILD_TYPE:STRING=Release             \ -DSYSCONFDIR:PATH=%{_prefix}            \ -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}  \ -DENABLED_PROFILING:BOOL=ON                   \ -DENABLE_DEBUG_SYNC:BOOL=OFF                  \ -DMYSQL_DATADIR:PATH=%{_prefix}/data    \ -DMYSQL_MAINTAINER_MODE:BOOL=OFF              \ -DWITH_EXTRA_CHARSETS:STRING=all  \ -DWITH_BIG_TABLES:BOOL=ON \ -DWITH_FAST_MUTEXES:BOOL=ON \ -DENABLE-PROFILING:BOOL=ON \ -DWITH_SSL:STRING=bundled                     \ -DWITH_UNIT_TESTS:BOOL=OFF                    \ -DWITH_ZLIB:STRING=bundled                    \ -DWITH_PARTITION_STORAGE_ENGINE:BOOL=ON       \ -DWITH_PLUGINS=heap,csv,partition,innodb_plugin,myisam \ -DDEFAULT_CHARSET=gbk […]