How to remotely connect to the cloud server database using Navicat

How to remotely connect to the cloud server database using Navicat

It is very convenient to connect to a remote server database without opening the secret key. Just fill in the data on the new connection. However, there is a big pitfall in connecting to the server after opening the SSH secret key. Let's talk about it in detail below.

In fact, the secret key is turned on. Under the new connection, first select SSH to log in to the remote server

1. Fill in the public IP address (I won’t show you my address here)

2. The default SSH port is 22 and does not need to be modified

3. Please note that the username is not your Xshell or third-party console username, but your server username. Generally, it is Root if it is not modified.

4. There are two ways below, one is the secret key and the other is the password. Let's talk about the secret key here. Once you apply for SSH on the server, it will return you a public key and a private key. Save them and then import them here.

The SSH part here is fine, don't rush to test it. Remember you are only connecting to the remote server

The huge pit begins below

Step 2: Connect to the database

1. Connection name, self-made

2. This host name or IP address! ! ! ! ! ! ! I have read many online tutorials and they all require you to fill in the IP address of the remote server. In fact, you should fill in the local address here. Yes, it is the intranet address, because you have logged in to the remote server. Of course, the mysql address connected to the remote server is localhost! ! ! ! !

3. Ports need no further explanation

4. The username and password are the username and password of your database on the server. This step is to connect to the database, don't make a mistake

Finally, test the connection! success!

By the way, one last thing to say, after the test is successful and you press OK, when you double-click the database, there is a very scary thing... that is

It's OK, just enter your server login password, if you forget to look for Cloud Daddy..............................

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Solution to navicat automatically disconnecting from the database after a period of time
  • How to remotely connect to MySQL database with Navicat Premium
  • How to use Navicat to create a database and connect with JDBC
  • When Navicat Premium connects to the database, the error message appears: 2003 Can't connect to MySQL server on''localhost''(10061)
  • Detailed explanation of the 10061 unknown error when using Navicat to connect to a remote Linux MySQL database
  • Solution to the problem "MySql database does not support remote connection" when connecting to NaviCat
  • How to connect Intellij IDEA to Navicat database

<<:  Problem record of using vue+echarts chart

>>:  Centos builds chrony time synchronization server process diagram

Recommend

17 JavaScript One-Liners

Table of contents 1. DOM & BOM related 1. Che...

How to use tcpdump to capture packets in Linux system

Let me look at the example code first: 1. Common ...

Example of how to deploy a Django project using Docker

It is also very simple to deploy Django projects ...

MySQL 8.0.18 stable version released! Hash Join is here as expected

MySQL 8.0.18 stable version (GA) was officially r...

Nine advanced methods for deduplicating JS arrays (proven and effective)

Preface The general methods are not listed here, ...

Learning about UDP in Linux

Table of contents 1. Introduction to UDP and Linu...

The principle and application of ES6 deconstruction assignment

Table of contents Array destructuring assignment ...

How to quickly query 10 million records in Mysql

Table of contents Normal paging query How to opti...

Detailed steps for adding hosts you need to monitor in zabbix

Add monitoring host Host 192.168.179.104 is added...

Solution to Docker image downloading too slowly

Docker image download is stuck or too slow I sear...

How to optimize images to improve website performance

Table of contents Overview What is Image Compress...

A Brief Analysis of the Differences between “:=” and “=” in MySQL

= Only when setting and updating does it have the...

Summary and examples of vue3 component communication methods

The communication modes of vue3 components are as...

Vue realizes price calendar effect

This article example shares the specific code of ...