1. yum install -y mariadb-server mariadb mariadb-devel -------安装
2. systemctl start mariadb ---启动服务
3. mysql_secure_installation ---配置服务
4. firewall-cmd --zone=public --add-port=3306/tcp --permanent ---开启防火墙端口
5. firewall-cmd --reload --重置配置
6. grant all on *.* to 'root'@'%' identified by '123456'; ---授权
7. flush privileges; --刷新授权
8. show variables like 'ch%'; --查看字符串
9. show variables like 'collation%'; --查看字符串
10. systemctl enable mariadb --设置服务自启动
标签:show,--,variables,---,firewall,mariadb,安装,centos8 From: https://blog.51cto.com/u_15826192/5750133