2.13.10.3.1. Setting up a database connection in ShopCMS

Warning!

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

Database connection data in ShopCMS are specified in the configuration file core/config/connect.inc.php in lines:

define('DB_HOST', 'host');
define('DB_USER', 'login');
define('DB_PASS', 'password');
define('DB_NAME', 'base_data');

In some cases, you may additionally need to change this data also in the files core/cache/afcache.php and core/cache/fcache.php... In this case, the files located in the directory core/cache and starting with %%, you need to delete.

Changes can be made using filemanager or any FTPclient.

Content