mysql开启远程连接(mysql开启远程访问)
程序员文章站
2024-02-27 22:21:27
复制代码 代码如下://建议设置固定ipmysql> grant all privileges on *.* to root@"8.8.8.8" identified...
复制代码 代码如下:
//建议设置固定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
上一篇: java反射技术与类使用示例
下一篇: java单例模式使用详解