Have a Question?

Categories

How to connect the database with SSH tunnel

You are here:
< All topics
Table of contents

For development purposes, we provide SSH access to our MySQL server from the Plus hosting package.

To create a connection, you must create an SSH key pair on the cPanel interface. Then we can use PuTTY to connect to SSH through the SSH protocol, but the tuner must be set before the connection.

To do this, follow these steps:

 

  1. In the left part of the window, select Connection/SSH and within the Tunnels section.
  2. In the Add new forwarded port section, in the Source port field, enter 3306 port number. For Destination, enter localhost:3306, and then click Add.
  3. After entering the data, click the Open button. In the window that appears, enter your storage ID and the SSH key password.

With these settings, you can see your databases connected to the localhost: 3306 port, as long as the connection established with PuTTY is not disconnected.

Was this article helpful?
0 out Of 5 Stars
5 Stars 0%
4 Stars 0%
3 Stars 0%
2 Stars 0%
1 Stars 0%
How can we correct this article?
Please submit the reason for your vote so that we can improve the article.
Tags:
Previous How do I make a backup of the database?
Next How to create database in Plesk interface