Centos6.5系统的vps服务器安装MySQL5.5或5.6
一、检查系统是否安装其他版本的MYSQL数据
#yum list installed | grep mysql
如有安装的,卸载一下:
#yum -y remove mysql-libs.x86_64
二、安装及配置
# wget http://repo.mysql.com/mysql-community-release-el6-5.noarch.rpm
# rpm -ivh mysql-community-release-el6-5.noarch.rpm
# yum repolist all | grep mysql
安装MYSQL数据库:
# yum install mysql-community-server -y
设置为开机启动(2、3、4都是on代表开机自动启动)
# chkconfig –list | grep mysqld
# chkconfig mysqld on
3、启动mysql:
# service mysqld start
启动数据库即可。