6.4.2 How to configure an application to work with a database?

If you want to use the database with your own application, you need to set the following values ​​in its configuration file (usually config.php or configuration.php):

  • server name: localhost;
  • username: name of the database user;
  • database password: password of the database user;
  • database name: name of your database;
  • prefix: different for each application, usually already set by default.

The database must be created in the hosting/VPS/physical server control panel in the Databases section.