MySQL遠程連接不上解決辦法

1.grant all privileges on *.* to root@'%' identified by "mypass" with grant option;

2.use mysql;
select host,user,password from user;  //出現你剛纔的設置

3.bind-address=0.0.0.0  註釋掉。。

4.有可能被封,vim /etc/my.cnf ... vim /etc/mysql/my.cnf 更改端口

5.路由器映射表沒有3306端口,換個已映射的端口(因爲這個崩潰了一上午)

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章