Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

osama_mohamed's avatar

sql connection refused

when i uploaded the project to a shared hosting it gives me this error .. and this is my .env file:

APP_ENV=local
APP_KEY=base64:6BskViIC6U5w+7KkTDanonTR7lOkMlXdvwg4hakt3EA=
APP_DEBUG=true
APP_LOG_LEVEL=debug
APP_URL=http://laravelblog.byethost4.com

DB_CONNECTION=mysql
DB_HOST=sql100.byethost4.com
DB_PORT=3306
DB_DATABASE=b4_19295362_education
DB_USERNAME=b4_19295362
DB_PASSWORD=osama1020

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=mailtrap.io
MAIL_PORT=2525
MAIL_USERNAME=null
MAIL_PASSWORD=null
MAIL_ENCRYPTION=null

PUSHER_APP_ID=
PUSHER_KEY=
PUSHER_SECRET=

0 likes
2 replies

Please or to participate in this conversation.