Linux中MySQL的安装

1安装前准备工作

    1. 主从数据库规划

主数据库IP:192.168.3.1

数据库密码均设置为gssjday12#$

1.2下载离线安装包

Mysql官方下载商业版5.7.30RPM安装包(redhat7.5系统建议为带GUI安装)

我在这里提供一个百度网盘下载链接:https://pan.baidu.com/s/12IHidLvXFoMnAa0sZl0GSw?pwd=6666 
提取码:6666

1.3环境配置

关闭内置防火墙以及selinux

systemctl stop firewalld 

systemctl disable firewalld

关闭selinux服务

sed -i s/SELINUX\=enforcing/SELINUX\=disabled/g /etc/selinux/config

setenforce 0

 

2 安装步骤

新建目录

mkdir /home/mysql-5.7.30

 

使用WinSCP上传压缩包

 

解压压缩包

[root@localhost mysql-5.7.30]# unzip p31229127_570_Linux-x86-64.zip

 

卸载冲突组件

[root@localhost mysql-5.7.30]# rpm -qa | grep postfix

postfix-2.10.1-7.el7.x86_64

[root@localhost mysql-5.7.30]# rpm -qa | grep mariadb

mariadb-libs-5.5.60-1.el7_5.x86_64

[root@localhost mysql-5.7.30]#

[root@localhost mysql-5.7.30]# rpm -ev postfix-2.10.1-7.el7.x86_64

Preparing packages...

postfix-2:2.10.1-7.el7.x86_64

[root@localhost mysql-5.7.30]# rpm -ev mariadb-libs-5.5.60-1.el7_5.x86_64

Preparing packages...

mariadb-libs-1:5.5.60-1.el7_5.x86_64

[root@localhost mysql-5.7.30]#

 

 

依次安装RPM包,执行如下命令(注:只安装如下RPM包)

[root@localhost mysql-5.7.30]# rpm -ivh mysql-commercial-common-5.7.30-1.1.el7.x86_64.rpm

warning: mysql-commercial-common-5.7.30-1.1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing...                          ################################# [100%]

Updating / installing...

   1:mysql-commercial-common-5.7.30-1.################################# [100%]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值