Mysql主从配置
1.下载Mysql
官网http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/
rpm -ivh http://repo.mysql.com/yum/mysql-5.7-community/el/7/x86_64/mysql57-community-release-el7-10.noarch.rpm
2.yum安装
yum install mysql-community-server -y
3.启动mysql
systemctl start mysqld
systemctl stop mysqld
systemctl status mysqld
#开机自启动
systemctl enable mysqld
#查看开机启动项
systemctl list-unit-files | grep enable
4.查看账号密码
grep &