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 a Bolt you will receive all the necessary information about your database. If you are unable to retrieve that information, you can

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

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

Give us your feedback on this article