Mysql 允许所有IP访问

$ mysql -u root -p
Enter password:

mysql> use mysql

#mysql> GRANT ALL ON *.* to root@'192.168.1.4' IDENTIFIED BY 'your-root-password'; 


mysql> GRANT ALL ON *.* to root@'%' IDENTIFIED BY 'root'; 

mysql> FLUSH PRIVILEGES;
发布了159 篇原创文章 · 获赞 177 · 访问量 147万+

猜你喜欢

转载自blog.csdn.net/hanghangaidoudou/article/details/104782122