loading...

SQLSTATE[HY000] [2002] Connection refused

github logo ・1 min read

Hi, I am using xampp server to run my php laravel application. I used the command 'php artisan migrate' for migration and I am getting this error:

: SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = testing and table_name = migrations)

My env file has been modified like this:
DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=testing
DB_USERNAME=root
DB_PASSWORD=

where 'testing' is my db name.
I tried many methods and I cross verified my db credentials too.
I need help in this

twitter logo DISCUSS (3)
Classic DEV Post from Aug 8 '18

Using Python and C together

How to use Python and C in the same project

aleeshapjohn profile image