# yum list installed | grep 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
Step7: MysqL安全设置命令:
# MysqL_secure_installation