eoweww eoweww - 1 year ago 111
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) *

Answer Source

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.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download