SQLSTATE[HY000] [2002] Connection refused LARAVEL

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:YDXD+qSSrHLrrSDEMyChFz64BCbCcykSPEiqvIkHQ7g=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=https://hamiltonian-basins.000webhostapp.com/

DB_CONNECTION=mysql
DB_HOST=127.0.0.1
DB_PORT=3306
DB_DATABASE=id3815544_adminsql
DB_USERNAME=id3815544_root
DB_PASSWORD=mypassword


BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
QUEUE_DRIVER=sync

REDIS_HOST=127.0.0.1
REDIS_PASSWORD=null
REDIS_PORT=6379

MAIL_DRIVER=smtp
MAIL_HOST=smtp.mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=

Those are my .env file code, why i can’t access the database?

Host is localhost :slight_smile: