Hello all,
I added a config/.env file with one line:
export MYSQL_USER=“root”
and in app.php Datasource section I have:
‘username’ => env(‘MYSQL_USER’,‘root1’)
cakephp (v3.3) seems not to be reading the file. It tries to connect with (deliberate) false username root1. Do I have to install a composer packege? From the documentation I understood that cakephp does this by default.
In your bootstrap.php file, make sure you have lines 52-58 uncommented. They are commented out by default. This also assumes you are using the josegonzalez/dotenv package which does ship with Cake by default.