Illuminate\Database\QueryException : SQLSTATE[HY000] [2002] Connection refused (SQL: select * from information_schema.tables where table_schema = pracatice and table_name = migrations)
0
votes
2 Answers
0
votes
- First check the
composer require doctrine/dbal
is installed if this composer is not installed then install it - Check the database port number is correct or not with other information like
DB_HOST=127.0.0.1,DB_PORT=3307,DB_DATABASE=pracatice,DB_USERNAME=root,DB_PASSWORD=
- Check the files permission for project this is also most important for running
php artisan migrate
- Then retry
php artisan migrate