lundi 9 mars 2020

SQLSTATE[HY000] [2002] Connection refused (SQL: select * from `berita` where `id_berita` between 10046 and 10047)

i got this error when i try to host my laravel project to 000webhost there is my .env code :

APP_NAME=Laravel
APP_ENV=local
APP_KEY=base64:SIOQcBXxddMSG/EWf0lO11rzrnCitTIo+b1499HGm48=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=https://rpl-smkn2.000webhostapp.com

DB_CONNECTION=mysql
DB_HOST=localhost
DB_PORT=3306
DB_DATABASE=id12858572_rpl_smkn2
DB_USERNAME=id12858572_rpl_smkn2
DB_PASSWORD=********

BROADCAST_DRIVER=log
CACHE_DRIVER=file
SESSION_DRIVER=file
SESSION_LIFETIME=120
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=6afa3f4438c0e4
MAIL_PASSWORD=2cc9bb87fdc6c2
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_APP_KEY=
PUSHER_APP_SECRET=
PUSHER_APP_CLUSTER=mt1

this is my first time got this error, i have checked similar question, but it's not help me. Picture for DB_NAME and DB_USERNAME



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire