I download from https://github.com/luciddreamz/laravel Laravel for openshift
then upload over my repository over github. This code for connect to database not work.
The prob
In my case, everything was set up correctly, but my Docker infrastructure needed more RAM. I'm using Docker for Mac, where default RAM was around 1 GB, and as MySQL uses around 1.5Gb of RAM ( and probably was crashing ??? ), changing the Docker RAM utilization level to 3-4 Gb solved the issue.