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
Just as on FYI to others suddenly experiencing this on an otherwise (previously) working Laravel installation:
My Laravel environment is on a Ubuntu VirtualBox hosted on a Win-10 laptop.
I used my phone to share Internet via USB and suddenly started experiencing this issue. I changed to using the phone as wireless hotspot and the issue went away. This is a nameserver/networking issue and is not specific to Laravel or MySQL.