# yum list installed | grep MysqL
# yum -y remove MysqL-libs.x86_64
三: 给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
yum-config-manager命令找不到的话,是因为系统默认没有安装这个命令,这个命令在yum-utils 包里,可以通过命令yum -y install yum-utils 安装就可以了。
四:安装MysqL 服务器
命令:
# yum install MysqL-community-server
五: 启动MysqL
命令:
# service MysqLd start
六: 查看MysqL是否自启动,并且设置开启自启动
命令:
# chkconfig --list | grep MysqLd
# chkconfig MysqLd on
七: MysqL安全设置
命令:
# MysqL_secure_installation原文链接:https://www.f2er.com/centos/376470.html