Illuminate\Database\QueryException SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = vizzafinserv_db and table_name = migrations and table_type = 'BASE TABLE') code example

Example: Illuminate\Database\QueryException SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = laravel and table_name = migrations and table_type = 'BASE TABLE')

You may have to specify a connection socket in your config or use 127.0.0.1 as your DB_HOST rather than localhost

Tags:

Sql Example