码迷,mamicode.com
首页 > 数据库 > 详细

MySQL 5.7.26一键安装脚本,CentOS7.4适用

时间:2019-05-02 10:09:57      阅读:340      评论:0      收藏:0      [点我收藏+]

标签:centos7   rpm   roo   post   root   community   nload   bundle   iad   

#!/bin/bash
#########MySQL5.7RPM auto install###########
#########2019-5-2###########################
mkdir -p /root/mysql
cd /root/mysql
wget https://dev.mysql.com/get/Downloads/MySQL-5.7/mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar &>/dev/null
tar xf mysql-5.7.26-1.el7.x86_64.rpm-bundle.tar
#rpm -qa |grep mariadb
yum remove mariadb-libs-5.5.56-2.el7.x86_64 &>/dev/null
if [ $? -eq 0 ];then
yum install libaio -y &>/dev/null
fi
rpm -ivh mysql-community-common-5.7.26-1.el7.x86_64.rpm &>/dev/null
rpm -ivh mysql-community-libs-5.7.26-1.el7.x86_64.rpm &>/dev/null
rpm -ivh mysql-community-devel-5.7.26-1.el7.x86_64.rpm &>/dev/null
rpm -ivh mysql-community-client-5.7.26-1.el7.x86_64.rpm &>/dev/null
rpm -ivh mysql-community-server-5.7.26-1.el7.x86_64.rpm &>/dev/null
rpm -ivh mysql-community-libs-compat-5.7.26-1.el7.x86_64.rpm &>/dev/null
yum install postfix -y &>/dev/null
systemctl start mysqld && systemctl start postfix

MySQL 5.7.26一键安装脚本,CentOS7.4适用

标签:centos7   rpm   roo   post   root   community   nload   bundle   iad   

原文地址:https://blog.51cto.com/9447803/2388262

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!