标签:centos6.5 mysql centos centos6.6
Step1: 检测系统是否自带安装mysql
# yum list installed | grep mysql
Step2: 删除系统自带的mysql及其依赖
命令:
# yum -y remove mysql-libs.x86_64
Step3: 给CentOS添加rpm源,并且选择较新的源
命令:
# wget dev.mysql.com/get/mysql-community-release-el6-5.noarch.rpm# yum localinstall mysql-community-release-el6-5.noarch.rpm# yum repolist all | grep mysql# yum-config-manager --disable mysql55-community# yum-config-manager --disable mysql56-community# yum-config-manager --enable mysql57-community-dmr# yum repolist enabled | grep mysql
Step4:安装mysql 服务器
命令:
# yum install mysql-community-server
Step5: 启动mysql
命令:
# service mysqld start
Step6: 查看mysql是否自启动,并且设置开启自启动
命令:
# chkconfig --list | grep mysqld# chkconfig mysqld on
本文出自 “生命不息,折腾不止” 博客,请务必保留此出处http://admxj.blog.51cto.com/10955090/1843264
CentOS 6.5/6.6 安装mysql 5.7 最完整版教程
标签:centos6.5 mysql centos centos6.6
原文地址:http://admxj.blog.51cto.com/10955090/1843264