MySql_无法远程root登录:
- 远程工具连接到数据库,需要开启root远程登陆
- 1. 登录mysql
[root@htuidc ~]# mysql -u root -p |
- 2. 开启远程连接
[root@htuidc ~]# GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '' WITH GRANT OPTION; |
- 3. 刷新权限
[root@htuidc ~]# FLUSH PRIVILEGES; |
- 4. 安装iptables
[root@htuidc ~]# yum install -y iptables |
- 5. 编辑开放端口列表,增加3306端口,重启防火墙即可。
[root@htuidc ~]# firewall-cmd --permanent --zone=public --add-port=8080/tcp |