alakhan
1 month ago
310
6
Laravel

Connection refused in Laravel Mysql project

Posted 1 month ago by alakhan

Connection refused (SQL: select * from information_schema.tables where table_schema = QualityBooks and table_name = migrations)

Exception trace:

1 PDOException::("SQLSTATE[HY000] [2002] Connection refused") /Users/lakhanpals/.bitnami/stackman/machines/xampp/volumes/root/htdocs/lv-bookstoreAS/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70

2 PDO::__construct("mysql:host=127.0.0.1;port=3306;dbname=QualityBooks", "root", "", []) /Users/lakhanpals/.bitnami/stackman/machines/xampp/volumes/root/htdocs/lv-bookstoreAS/vendor/laravel/framework/src/Illuminate/Database/Connectors/Connector.php:70

I have gone through so many posts, but not sure why my php artisan migrate is not working and I am getting this error

Please sign in or create an account to participate in this conversation.