当本地navicat连接不上阿里云服务器上面的mysql
1.检查服务器上面的 安全组 有没有授权,详情看https://helpcdn.aliyun.com/document_detail/25471.html?spm=5176.doc25468.2.4.RfJyPU
2.权限不足问题mysql -uroot -p
GRANT ALL PRIVILEGES ON *.* TO 'root'@'%' IDENTIFIED BY '123456' WITH GRANT OPTION;
这种语句会报语法错误,所以用这条 grant all privileges on *.* to 'root'@'%' ;
之后刷新一下 flush privileges;
再去navicat测试连接一下