centos 7 安装mysql最新版过程

前端之家收集整理的这篇文章主要介绍了centos 7 安装mysql最新版过程前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。

1 下载安装包,这里只是5.6的最新版,访问https://dev.MysqL.com/downloads/MysqL/5.6.html#downloads可以查询到最新版号,只要修改最后的5.6.XX就可以下载。

 wget https://dev.MysqL.com/get/Downloads/MysqL-5.6/MysqL-server-5.6.36-1.el7.x86_64.rpm
wget https://dev.MysqL.com/get/Downloads/MysqL-5.6/MysqL-client-5.6.36-1.el7.x86_64.rpm

wgethttps://dev.MysqL.com/get/Downloads/MysqL-5.6/MysqL-shared-compat-5.6.36-1.el7.x86_64.rpm

2 安装必须的包
  yum install -y perl-Module-Install.noarch
3 安装RPM包

 rpm -ivh MysqL-server-5.6.36-1.el7.x86_64.rpm
rpm -ivh MysqL-client-5.6.36-1.el7.x86_64.rpm
rpm -ivh MysqL-shared-compat-5.6.36-1.el7.x86_64.rpm

4安装完成屔初始化数据库 MysqL_install_db 5 添加为自启动服务  chkconfig MysqL on 6 启动服务 service MysqL start

原文链接:https://www.f2er.com/centos/377166.html

猜你在找的CentOS相关文章