如何开启MYSQL远程连接权限_MySQL
程序员文章站
2022-05-18 18:09:22
...
bitsCN.com
开启MYSQL远程连接权限
bitsCN.com
- //建议设置固定IP
- mysql> GRANT ALL PRIVILEGES ON *.* TO root@"8.8.8.8" IDENTIFIED BY "root";
- mysql> flush privileges;
- //修改防火墙
- iptables -I INPUT -p tcp --dport 3306 -j ACCEPT