mysql 在centos7.5 中开放3306端口

服务器centos 7.5 防火墙开放3306
firewall-cmd --zone=public --add-port=3306/tcp --permanent
firewall-cmd --reload
firewall-cmd --list-ports

Mysql 开启访问权限
mysql -u root -p
use mysql
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '密码' WITH GRANT OPTION;
flush privileges;

posted @ 2020-11-19 17:12  /折磨  阅读(316)  评论(0编辑  收藏  举报