The OpenCart configuration file is located in the root of this CMS and is named config.php
The same file is also in the admin directory and has the same name config.php
Therefore, it is necessary to make changes to the database connection in both files.
Changes need to be made in the following fields:
define('DB_HOSTNAME', 'localhost');
define('DB_USERNAME', 'database user name');
define('DB_PASSWORD', 'database user password');
define('DB_DATABASE', 'database name');
define('DB_PORT', '3306');