How to connect and configure a database for the site

One of the most important components of the site is the database. You can use one of the popular versions of the DBMS (database management systems) for the site on PHP hosting in RealHOST:

  • MySQL 5.5
  • MariaDB 10.1
  • MySQL 5.7
  • MySQL 8.0

In this article, we will look at creating a database and connecting it to the site using the example of the popular CMS WordPress.

Settings should be done in the PHP hosting control panel

1. First, let's determine which version of the DBMS is required for our site

Following the information on the website


we will install the MariaDB 10.1 database

2. Go to Dashboard - Databases and click Add button


3. Fill out the form as described in the screenshot


  • The database user password should be as complex as possible and protected from the possibility of brute force or brute force in a dictionary.

4. In the list, the base contains the address that should be entered in the site settings


5. Open the site configuration file editor


6. Enter the database access data and save the file