navicat连接阿里云服务器的mysql
-
阿里云开放安全组(MySQL端口3306)
-
查看用户的权限(服务器上面查看)
root的 host是 % 证明权限没问题
更改mysql user表中登陆用户权限
show databases;
use mysql;
select user,host,password from user;
update user set host = ‘%’ where user=‘root’;
flush privileges;
3.连接navicat的操作使用以下方式
出现的问题
80070007:SSH Tunnel:Server does not support diffie-hellman-group1-sha1 for keyexchange
问题解决
- 1、进入 /etc/ssh/sshd_config 在最下面 加入下面代码
KexAlgorithms diffie-hellman-group1-sha1,curve25519-sha256@libssh.org,ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group14-sha1
Ciphers 3des-cbc,blowfish-cbc,aes128-cbc,aes128-ctr,aes256-ctr
-
- 执行下面代码
ssh-keygen -A
-
- 重启SSH
service sshd restart