1、使用SecureCRT远程centos 7系统

2、安装mariadb
yum -y install mariadb-server mariadb mariadb-devel


3、启用mariadb,开机启动
systemctl start mariadb
systemctl enable mariadb

4、查看监听端口
yum -y install net-tools
netstat -an |grep 3306
5、防火墙开启允许
firewall-cmd --permanent --add-service mysql
systemctl restart firewalld.service
iptables -L -n|grep 3306

6、简要的安全设置
mysql_secure_installation
