默认使用centos yum安装的MysqL不是5.5版本的,我们需要增加两个新的repo
rpm -Uvh http://mirror.steadfast.NET/epel/6/i386/epel-release-6-8.noarch.rpm rpm -Uvh http://rpms.famillecollet.com/enterprise/remi-release-6.rpm
centos6下PHP PHP-fpm的yum安装
查看一下是不是有MysqL 5.5了
yum --enablerepo=remi,remi-test list MysqL MysqL-server
安装MysqL5.5
yum --enablerepo=remi,remi-test install MysqL MysqL-server
启动MysqL5.5
/etc/init.d/MysqLd start
设置开机启动
chkconfig --levels 345 MysqLd on
要启用MysqL 安全设置请输入以下命令
/usr/bin/MysqL_secure_installation