安裝後的遠程訪問一直有問題 ,經過各種查看,發現需要修改 /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 一搞定
安裝後的遠程訪問一直有問題 ,經過各種查看,發現需要修改 /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 一搞定