2.14.3.4. Configure database connection in OpenCart

Attention!

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

Database connection credentials in OpenCart are specified in two configuration files config.php and admin/config.php in lines:

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

Changes can be made using the file manager or any FTP client.

Teneur

    (1)