mysql - Leravel .env configuration works with Laravel 5.2 but gives 2002 error with Laravel 5.1 -


2 working fine set .env file like:

db_connection=mysql db_host=127.0.0.1 db_port=8889 db_database=phonelist db_username=phonelist db_password=***** 

now cloned github project developed in laravel 5.1 , created .env file same host , port created new db new user.

db_connection=mysql db_host=127.0.0.1 db_port=8889 db_database=pinboard db_username=pinboard db_password=test 

i keep getting

sqlstate[hy000] [2002] connection refused

i can see errors include values .env file. else can troubleshoot this? said 5.2 connects fine, can make migrations , 5.1 throws error. positively db, user, , pass typed correctly.


Comments

Popular posts from this blog

scala - 'wrong top statement declaration' when using slick in IntelliJ -

c# - DevExpress.Wpf.Grid.InfiniteGridSizeException was unhandled -

PySide and Qt Properties: Connecting signals from Python to QML -