1.確定3306端口是否對外開放
如果是阿里雲服務器,需要添加安全組規則
2.授權
執行sql,賬號密碼按照自己服務器而定
grant all privileges on *.* to 'root'@'%' identified by 'youpassword' with grant option;
mysql>flush privileges;
以上是本人的解決經歷
如果是阿里雲服務器,需要添加安全組規則
執行sql,賬號密碼按照自己服務器而定
grant all privileges on *.* to 'root'@'%' identified by 'youpassword' with grant option;
mysql>flush privileges;
以上是本人的解決經歷
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。