0

I have a laravel site hosted on a server and when I log in, it usually load but today i see that it says connection refused.

SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `users` where `email` = admin12345@gmail.co.za limit 1)

has anyone experienced this?

my env file:

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=database1
DB_USERNAME='root'
DB_PASSWORD='123456789'

I have changed `DB_HOST=127.0.0.1` to `DB_HOST=localhost` but still no success

0 Answers0