eoweww eoweww - 4 months ago 32
MySQL Question

Laravel cant connect database

I want to simply connect database of hostinger which I have created.You can see my settings of laravel and hosting name and user name etc in image.

enter image description here

This is error which I have taken *[PDOException]

SQLSTATE[HY000] [2005] Unknown MySQL server host 'mysql.hostinger.web.tr' (

2) *


This looks like a host problem and not a laravel specific problem. I would contact your host and confirm the hostname you should be using and check that it matches that in your .env file.