当前位置:网站首页>通过SSH方式访问内网RDS+mysql
通过SSH方式访问内网RDS+mysql
2022-07-23 13:40:00 【Dove言和】
平时一台服务器、一个数据ip、账号密码就可以连接访问数据库资源,但有的公司为了安全性,不开放外网,只能通过内网连接,那这个时候就需要用到ssh隧道进行连接。
现有两个服务器 一个是阿里云项目服务器(Linux系统,用于运行项目) project_server;一个是mysql数据库服务器(未开通外网访问权限) mysql_db_server;
两个服务器所在地区都是 华东大区(上海),内网互通。
要实现本地Navicat连接到线上mysql数据库,并可进行数据库操作。
可以用SSH代理访问未对外网开放的数据库。
步骤:
1. 新建MySql连接 -> Navicat 使用并配置SSH(填入project_server服务器的登录信息)

2. mysql内网访问配置(填入mysql_db_server服务器数据库内网连接配置,这里是数据库的连接配置,不是数据库所在服务器的连接配置)

3. 测试连接
边栏推荐
猜你喜欢
随机推荐
Acquisition of positional reliability in accurate target detection
Is it safe for online account managers to open accounts when choosing securities companies in flush
Royal O'Brien, executive director of o3df: open source has no boundaries, and all shared sounds will become the actual direction
Distance IOU loss: faster and better learning for bounding box regression
Study note 7 -- traffic environment behavior prediction
Nifi 1.16.3 cluster setup +kerberos+ user authentication
IE盒模型和标准盒模型
securecrt 乱码
The first stage of basic knowledge of numpy data analysis (numpy Foundation)
Summary of after class homework of Microcomputer Principle and technical interface
Nodejs implements token login registration (koa2)
Direct exchange
anchor free yolov1
Cuibaoqiu, vice president of Xiaomi group: open source is the best platform and model for human technological progress
软件体系结构
Ie box model and standard box model
CNCF基金会总经理Priyanka Sharma:一文读懂CNCF运作机制
Object.defineproperty method, data agent
网络协议与攻击模拟:wireshark使用、ARP协议
Wechat applet wx.hideloading() will close the toast prompt box









