mysql_外網訪問

1,mysql 數據庫,user表設置,mysql

update user set host = '%' where user ='root'; sql

flush privilesges;數據庫

2,/etc/mysql/my.cnfide

bind-address           = 0.0.0.0it


3:grant all privileges on *.*  to  'root'@'%'  identified by 'root' with grant option;io

4,flush privileges;date

相關文章
相關標籤/搜索