解決ubuntu 下 MySQL5.7.16遠程訪問問題

安裝後的遠程訪問一直有問題 ,經過各種查看,發現需要修改 /etc/mysql/mysql.conf.d 目錄下的mysqld.cnf文件 ,在 bind_address前面加上#注掉,

然後grant all privileges on *.* to admin@"%" identified by 'password' with grant option; flush privileges;

最後重啓MySQL服務器, sudo service mysql restart 一搞定

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