Navicat connects to remote database Postgresql, MySQL

No matter what database, as long as Navicat is used to connect remotely, the following methods will work.

environment:

Server: Remote Server
Operating System: : linux
Database: PostgreSQL14
Database Client: Navicat

It is mainly divided into two steps:

Step 1: Click "Connect" in the upper left corner of Navicat and select Postgresql. Connect to the SSH server first.

Check "Use SSH channel", and enter the remote host's ip address, port number, accessible user name and password  below .

Click "Test Connection", and the following window pops up, indicating that the SSH server is successfully connected.

 Step 2: Go back to the regular connection and enter the relevant information in it. Choose any connection name, here connect Postgresql, the port number is 5432, Mysql should be the default 3306, the most important thing is the user name and password .

 OK, the connection is successful.

 

 The same is true for other databases, first connect to the SSH server, then connect to the database, kill!

Guess you like

Origin blog.csdn.net/AE86____/article/details/127265952