2.14.10.2. Configure database connection in October

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 October are specified in the configuration file config/database.php in mysql block in lines:

'mysql' => [
    'driver'     => 'mysql',
    'engine'     => 'InnoDB',
    'host'       => 'host',
    'port'       => 3306,
    `'database'   => 'database',`
    'username'   => 'login',
    'password'   => 'password',
    'charset'    => 'utf8mb4',
    'collation'  => 'utf8mb4_unicode_ci',
    'prefix'     => '',
    'varcharmax' => 191,
],

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

Content