vendredi 20 septembre 2019

Database [mysql2] not configured Laravel?

message: "Database [mysql2] not configured."

My database configuration file is:

'connections' => [
    'mysql2' => [
            'driver' => 'mysql',
            'host' => '92.113.183.90:3306',
            'port' => '3306',
            'database' => 'skmaircloud',
            'username' => 'oleg',
            'password' => 'Ohholding2019',
            'unix_socket' => env('DB_SOCKET', ''),
            'charset' => 'utf8mb4',
            'collation' => 'utf8mb4_unicode_ci',
            'prefix' => '',
            'prefix_indexes' => true,
            'strict' => true,
            'engine' => null,
            'options' => extension_loaded('pdo_mysql') ? array_filter([
                PDO::MYSQL_ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'),
            ]) : [],
        ],
]

I have cleared cache and rerun server.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire