#停止防火墙
systemctl stop firewalld
#查看防火墙是否运行
systemctl status firewalld
# 防火墙设置允许
firewall-cmd --add-port=3306/tcp --permanent
firewall-cmd --reload
# 建立账号,并授管理员权限
create user aa identified by 'Admin_110';
grant all on *.* to aa;
create user bb identified with mysql_native_password by 'Admin_110';
grant all on *.* to bb;