搞了LNMP一键包,需要InnoDB,之前的lnmp0.8没有带InnoDB,所以需要重新编译安装下mysql,让mysql支持InnoDB引擎。
1、进入源码目录
cd /root/lnmp0.8/mysql-5.1.60
make clean
2、运行命令
./configure –prefix=/usr/local/mysql –enable-assembler –with-charset=utf8 –with-extra-charsets=complex –enable-thread-safe-client –with-big-tables –with-readline –with-ssl –with-embedded-server –enable-local-infile –with-pic –with-fast-mutexes –with-client-ldflags=-static –with-mysqld-ldflags=-static –with-plugins=all
3、make && make install
重新编译
#make;make install
#/root/lnmp restart
mysql就启用InnoDB引擎了。