- 安装好mysql
(1)使用mysql -u root -p登录mysql
(2)执行grant all privileges on *.* to 'root'@'%' identified by '111111';
(3) flush privileges;
3.开放3306端口
firewall-cmd --add-port=3306/tcp --permanent
firewall-cmd --add-port=3306/udp --permanent
firewall-cmd --reload
4.打开可视化连接工具输入
ip:输入你要连接的服务器ip
用户名:root
密码:111111