Navicat Premium connects to remote database

create connection

First we need to hit 连接the key and create the required database connection (PostgreSQL is used here for demonstration).
insert image description here

configuration SSHinformation

SSHThen select a column in the pop-up window and check it 使用SSH隧道.
Host: Fill in your remote host address
Port: Fill in your remote host connection port
Username: The user who connects to the remote host
Password: The password for logging in the user
insert image description here

configuration 常规information

Select 常规another column.
Connection name: database connection name.
Host: Fill in the address that pops up when you run ifconfig on the remote host Port
: Fill in the connection port of the database installed on your remote host
(for example, PostgreSQL is generally 5432, MySQL is generally 3306)
Username: Username for logging in to the database
Password: Database user password for
insert image description here

test connection

Next, test the connection.
If there is a red line from Navicat to the SSH server, it means that your SSHfilling is wrong.
If there is a red line from the SSH server to the database, it means that your 常规filling is wrong.
If the following picture appears (two green lines, it means it is successful)
insert image description here

successfully used

Next, you can use Navicat Premium to operate your database normally!
insert image description here

Guess you like

Origin blog.csdn.net/twi_twi/article/details/127145774