MySQL5.5编译安装以及Debug

MySQL5.5以上版本安装是需要cmake

安装步骤:

设置编译参数
cmake  -DCMAKE_INSTALL_PREFIX='/data1/guosong/mysql_debug'  -DDEFAULT_CHARSET=utf8 -DDEFAULT_COLLATION=utf8_general_ci -DWITH_DEBUG=ON

make && make install
生成mysql系统库表
./scripts/mysql_install_db 

chown -R mysql.mysql /data1/guosong/mysql_debug

编译的时候参数说明:

http://dev.mysql.com/doc/refman/5.6/en/source-configuration-options.html

MySQL5.1以及MySQL5.0安装步骤:

configure

make && make install

两者之间的差异???

(待续)

Debug

原文地址:https://www.cnblogs.com/gsblog/p/3382019.html