2.14.3.4. Setting up a database connection in OpenCart

Attention!

The connection will not work with localhost. The host address must be taken from the data to connect to the database.

Database connection data OpenCart specifies in two configuration files config.php and admin/config.php in lines:

define('DB_HOSTNAME', 'host');
define('DB_DATABASE', 'base_data');
define('DB_USERNAME', 'login');
define('DB_PASSWORD', 'password');

Changes can be made using filemanager or any FTPclient.

Content