Setting up a database connection in MODX


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 MODX are specified in the config file manager/includes/config.inc.php in lines:

$database_server = 'host';
$database_user = 'login';
$database_password = 'password';
$dbase = 'base_data’;

In some versions, for example, in the Revolution branch, these changes must be made in the file core/config/config.inc.php.

Changes can be made using filemanager or any FTPclient.