#yumlistinstalled|grepMysqL
#yum-yremoveMysqL-libs.x86_64
Step3: 给CentOS添加rpm源,并且选择较新的源
命令:
#wgetdev.MysqL.com/get/MysqL-community-release-el6-5.noarch.rpm#yumlocalinstallMysqL-community-release-el6-5.noarch.rpm#yumrepolistall|grepMysqL#yum-config-manager--disableMysqL55-community#yum-config-manager--disableMysqL56-community#yum-config-manager--enableMysqL57-community-dmr#yumrepolistenabled|grepMysqL
Step4:安装MysqL 服务器
命令:
#yuminstallMysqL-community-server
Step5: 启动MysqL
命令:
#serviceMysqLdstart
Step6: 查看MysqL是否自启动,并且设置开启自启动
命令:
#chkconfig--list|grepMysqLd#chkconfigMysqLdon