mysql5.7.22允许所有外部ip访问数据库。

转自:https://blog.csdn.net/weixin_42001930/article/details/80274615

1、使用mysql -u root -p (这里最好使用root的密码)

2、use mysql;

3、grant all privileges on *.* to 你的数据库账号@'%'  identified by '你对应账号的密码';

猜你喜欢

转载自blog.csdn.net/wcx_qaz/article/details/82021586