2.14.9.3. Configure database connection in PrestaShop

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 PrestaShop 1.7 are specified in the configuration file app/config/parameters.php in the following lines:
'database_host' => 'host',
'database_name' => 'database',
'database_user' => 'login',
'database_password' => 'password',
Database connection credentials in PrestaShop 1.5-1.6 are specified in the configuration file config/settings.inc.php in the following lines:
define('_DB_SERVER_', 'example.mysql.tools');
define('_DB_NAME_', 'example_db');
define('_DB_USER_', 'example_db');
define('_DB_PASSWD_', 'password');

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

Content

    (1)