Home Articles Platform info Connecting to your database

Connecting to your database

Whether you are using WordPress, Magento, Drupal or something completely custom to your site, the connection to the database should be pretty similar.

When you register you host you will receive alle the necessary information about your database.

The database most often runs on the same server as your website, therefore you should input localhost  as the database server, instead of the server name.

You configure the database in the following files:

WordPress: public/wp-config.php
Magento: public/app/etc/local.xml
Magento 2: public/app/etc/env.php
Drupal 7: public/sites/all/settings.php

Most commonly you will have to fill in:

Database host/server: localhost
Database name
Username
Password

and in some cases port (3306). All this is provided in the mail received when adding a host, site or database.

Did this help you?