Centos7.5通过yum安装mysql5.7
注:安装的是mysql5.7并不是mariadb-server
基础环境准备,不做过多描述之前文档中都详细解释过。
[root@localhost ~]# hostname --all-ip
192.168.200.101
[root@localhost ~]# firewall-cmd --stat
not running
[root@localhost ~]# getenforce
Disabled
[root@localhost ~]# iptables -nL
Chain INPUT (policy ACCEPT)
target prot opt source destination
Chain FORWARD (policy ACCEPT)
target prot opt source destination
Chain OUTPUT (policy ACCEPT)
target prot opt source destination
[root@localhost ~]# systemctl status iptables
● iptables.service - IPv4 firewall with iptables
Loaded: loaded (/usr/lib/systemd/system/iptables.service; disabled; vendor preset: disabled)
Active: inactive (dead)
[root@localhost ~]# systemctl status firewalld
● firewalld.service - firewalld - dynamic firewall dae