How do I find my database hostname?

This article will show you where to find the hostname for your database.

If you want to remotely connect to any databases within your hosting account, you will need to enter its hostname. Click the relevant title from the list below and follow the provided instructions to get started:

Please note: this process only applies to Web Hosting plans purchased after July 2020 and Premium Hosting plans purchased after August 2020 (cPanel).

cPanel

If you’re remotely connecting to a database on cPanel hosting, you will need to use your hosting package’s IP address as the hostname.

If you’re connecting to a database via the hosting package itself (i.e. connecting a WordPress website that’s hosted on cPanel hosting to a database within the same package), you can use localhost as your hostname.

Plesk

Step 1 of 4

Start by accessing your Web Hosting dashboard.

Step 2 of 4

From there, select Plesk Admin.

Step 3 of 4

Next, click Databases in the left-hand menu.

Step 4 of 4

You will now see all the details for your account’s databases, including the hostname and users.

Important: do not include the port number that is featured at the end of your hostname. For example if your server is 1.2.3.4:5678, you will need to use 1.2.3.4 as your hostname.

Managed WordPress

Step 1 of 6

Start by logging in to your 123 Reg Control Panel.

Step 2 of 6

From there, select Manage All opposite Managed WordPress within the ‘All Products and Services’ section.

Step 3 of 6

On the next page, select the 3-dot icon for the package you want to access and then choose Settings from the menu that appears.

Step 4 of 6

Click Show more within the Production Site section.

Step 5 of 6

Select View opposite Database details.

Step 6 of 6

A pop-up window will now appear where you will see all the details for your database, including the hostname, port number, username and password.