Very good people,
I have the following doubt; I have a project in Laravel (v5.6 with php v7.2) connected to a local database and I want to reconnect it to the database of a shared server (CDMON).
From what I understand, I have to modify the data in the .env and /config/database.php files of my project. But once this is done, I miss the error corresponding:
It's as if it kept pointing me to the database I had before.
My .env file:
DB_CONNECTION=mysql
DB_HOST=192.xxx.x.xxx
DB_PORT=3306
DB_DATABASE=reporting
DB_USERNAME=mywel6902
DB_PASSWORD=xxxxxxx
My file " /config/database.php ":
'mysql' => [
'driver' => 'mysql',
'host' => env('DB_HOST', '192.xxx.x.xxx'),
'port' => env('DB_PORT', '3306'),
'database' => env('DB_DATABASE', 'reporting'),
'username' => env('DB_USERNAME', 'mywel6902'),
'password' => env('DB_PASSWORD', 'xxxxxxx'),
'unix_socket' => env('DB_SOCKET', ''),
'charset' => 'utf8mb4',
'collation' => 'utf8mb4_unicode_ci',
'prefix' => '',
'strict' => true,
'engine' => null,
],
How do I tell him to point me to the new database? Should I clean the server's cache?
Thanks to everyone in advance.