If you are in mac environment and using Laravel and mysql and encounter such an error:
SQLSTATE[HY000] [2002] Connection refused
The solution would be:
Just open the mysql config file at /usr/local/etc/my.cnf
with your editor and comment out the following line:
!includedir /usr/local/etc/my.cnf.d
It should be the same as :
# !includedir /usr/local/etc/my.cnf.d
I would like to introduce two packages for Laravel that I have recently developed: Laravel Pay Pocket, a modern multi-wallet package, and Laravel Failed Jobs, a UI for the Laravel Failed Jobs Table. I hope they may be of help to you.
https://github.com/HPWebdeveloper/laravel-pay-pocket
https://github.com/HPWebdeveloper/laravel-failed-jobs