当前位置:网站首页>使用Navicat进行ssh通道连接MySQL数据库(亲测可行)
使用Navicat进行ssh通道连接MySQL数据库(亲测可行)
2022-07-19 10:48:00 【全栈程序员站长】
大家好,又见面了,我是全栈君。
前些天尝试用SSH通道进行远程数据库的链接,走了不少弯路,后来经过摸索与请教,最终连接成功。现在分享给大家!
首先,你得有一个Navicat,这个不用多说
第二步,打开Navicat点击连接按钮。这个就不上图了,直接到如下页面填写信息,连接名随便起
第三步:点击上方SSH通道按钮,显示如下页面
在SSH通道下主机名或IP地址栏填写远程服务器地址IP;注意注意,重点来了,这里的用户名填写的是要远程服务器用户名,比如root,密码填写的是远程服务器的密码。这一步不要点击连接测试,或者忽略连接测试结果
第四步:回去到常规页面,在常规页面中填写用户名和密码,这时也是重要的点,注意注意,此时用户名填写的是远程服务器数据库上的用户名,密码填写的是远程服务器数据库密码,一定要注意,一定要注意。
总结:其实重要的是要理解,ssh通道的目的是连接到服务器的,而常规则是要连接到服务器端数据库的 1)ssh通道的目的是连接到服务器的。需要服务器的账号密码!服务器的账号密码!
2)常规则是要连接到数据库。需要数据库的账号密码,数据库的账号密码
补充:navicat and connection is being used
因为我原来是用远程地址,数据库用户名和密码直连形式,在该链接上直接编辑的,所以每次保存是都会测试成功,但报错navicat and connection is being used
1、在已经保存的连接上上编辑,测试连接成功,但是点击连接就会一直提示 connection is being used 2、需要新建一个连接,才能使用,不能再已保存的上面修改
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/111557.html原文链接:https://javaforall.cn
边栏推荐
- System app signature JKS production and silent installation
- IPhone 14 Max production progress lags behind: or affect the delivery ratio of the first batch of products
- 人、能力、资源、财富、合作
- Isn't it too much to play Gobang in idea?
- [cann training camp] brief introduction the format of general target recognition data after decoding is customized from yuv420sp nv12 to yuv420sp nv21
- [latex] ppt Drawing, Export EMF format, word insert EMF file and export PDF, PDF cut and export EPS file, latex insert EPS file
- 启新聚势 云谱新篇|海泰方圆与四川联通达成生态战略合作
- 聚焦数据|海泰方圆直击证券行业数据安全治理建设思路
- 用于解析命令行参数的 C argc 和 argv 示例
- 尚乘数科美股IPO:市值30亿美元 蔡志坚收获第二家上市企业
猜你喜欢
Alibaba hot updates the story of sophix
云原生(三十六) | Kubernetes篇之Harbor入门和安装
Too busy or too lazy? The same fund manager has the same view in the quarterly reports of different products
非金融类去中心化应用的产品原则
系统App 签名JKS制作及静默安装
It costs millions of dollars to track the mobile location of people at home and abroad without authorization
STM3(cubeIDE)点灯实验
什么是更适合中国企业的CRM选型标准?
阿里热更新Sophix的故事
Upgrading thinking from engineer to technical leader
随机推荐
【CANN训练营】简述通用目标识别数据解码后格式由YUV420SP NV12定制为YUV420SP NV21
4.5 nodejs自动化测试设计思路2
win系统开机增加启动软件项
[depth] the new LAAS agreement elephant: the key to revitalizing the development of the defi track
熔断、降级 Sentinel
Thoughts on a decoration contract
Server check fail, please check server 192.168.11.13 ,port 9848 is available , error ={}
EPub e-book combat analysis
0718-棉花棉纱涨停,市场大幅反弹
LiveDataBus核心原來如此簡單
Detailed explanation of Android interview hash principle II
"Wheels" to improve development efficiency
Experiment 3 mGRE comprehensive experiment
Construction of dnslog platform
Apache Shenyu Admin 身份验证绕过漏洞(CVE-2021-37580)分析与防护手段
View files in different branches without switching branches
OSPF of hcip
vulnhub Me-and-My-Girlfriend-1
慧翰微电子冲刺深交所:年营收4.2亿 上汽创投是股东
Too busy or too lazy? The same fund manager has the same view in the quarterly reports of different products