What is the host of my database? –

Hosting Mautic QuickStart -50% with support in Spanish
24 hours and free training

Send up to 1,000,000 emails/year. Mautic support in Spanish 24 hours, 365 days

To install a website in a simple way, be it WordPress, Joomla or PrestaShop, in you can use the , these installers will take care of the process of creation and connection to the database.

However, if you are going to manually install your website, at some point in the process it will ask you to indicate the connection data with the database.

The connection details requested are the server or host of the database, the name of the database and your username and password. To create a database and assign permissions to a user you can review the article, however we are missing the hostname.

In the following image we see the process, in one of the steps as part of the installation it asks us for the database connection information.

Database Host Name

In the name of the server of your database will always be localhost.

However, if you are in another provider, check the control panel help or in the emails sent when creating your account.

Locate connection data on installed sites

If you already have any sites installed on your hosting account, then the database server name will be the same for new sites on the same account.

In the case of WordPress

If you already have a website wordpress installed and want to see what data it is using for the database connection, you can do so by locating the file:

See also  Twitter Cards: What they are and how to add them to your Wordpress -

/wp-config.php

Inside this file you will see that you have the connection data, for example:

In the case of Joomla

If you have a website in Joomla and you want to find out the connection data, you can locate the file:

/config.php

Inside this file you will see that you have the connection data, for example:

In the case of PrestaShop

If you have a website in PrestaShop and you want to find out the connection data with the database, you can locate the following file:

/app/config/parameters.php

When editing this file you will see the connection data similar to the one shown in the following image:

conclusion

As you have been able to verify, it is very usual that the database server is localhost, otherwise you can check the documentation of your hosting provider or find out the host by checking the connection file of a website that you already have installed.

Help us improve our content by sharing your opinion

WordPress technical support at and regular speaker at Meetups and WordCamps in America.

Loading Facebook Comments ...
Loading Disqus Comments ...