navicat链接远程数据库

1.之前使用的是常规的连接方式

学习源头:

https://jingyan.baidu.com/article/0aa2237573c1e688cc0d6427.html

这里的ip地址是服务器的ip地址  然后在连接数据库

 

2.通过ssh的方式连接

这种连接方式是先通过ssh连接到服务器上 然后再在服务器上操作数据库

学习源头:

https://jingyan.baidu.com/article/e4511cf32b55ea2b855eaf4b.html

先通过ssh 连接到服务器 然后再连接数据库

所以这里常规的ip地址一定是 localhost

posted @ 2018-06-12 10:59  段佳伟  阅读(650)  评论(0编辑  收藏  举报