2 working fine I set up the .env file like:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=8889
DB_DATABASE=phonelist
DB_USERNAME=phonelist
DB_PASSWORD=*****
Now I cloned from github a project developed in Laravel 5.1 and I created a .env file with the same host and port just created a new db with new user.
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=8889
DB_DATABASE=pinboard
DB_USERNAME=pinboard
DB_PASSWORD=test
I just keep getting
SQLSTATE[HY000] [2002] Connection refused
I can see the errors include the values from my .env file. Anything else I can do to troubleshoot this? Like I said 5.2 connects fine, I can make migrations and all but 5.1 throws the error. I am positively certain that DB, USER, and PASS as typed correctly.
from Newest questions tagged laravel-5 - Stack Overflow http://ift.tt/20ywGhi
via IFTTT
Aucun commentaire:
Enregistrer un commentaire