Centos6.5的vps服务器安装MySQL5.5或5.6

已关闭留言

Centos6.5系统的vps服务器安装MySQL5.5或5.6


一、检查系统是否安装其他版本的MYSQL数据
#yum list installed | grep mysql
Centos6.5的vps服务器安装MySQL5.5或5.6插图


如有安装的,卸载一下:
#yum -y remove mysql-libs.x86_64
Centos6.5的vps服务器安装MySQL5.5或5.6插图1


二、安装及配置
# 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
Centos6.5的vps服务器安装MySQL5.5或5.6插图2


安装MYSQL数据库:
# yum install mysql-community-server -y
Centos6.5的vps服务器安装MySQL5.5或5.6插图3


设置为开机启动(2、3、4都是on代表开机自动启动)
# chkconfig –list | grep mysqld
# chkconfig mysqld on
Centos6.5的vps服务器安装MySQL5.5或5.6插图4


3、启动mysql:
# service mysqld start
Centos6.5的vps服务器安装MySQL5.5或5.6插图5

启动数据库即可。