mardi 10 octobre 2017

Connect to remote database from Laravel Homestead

I am trying to connect my Homestead Laravel project to a remote db hosted on Fasthosts but I get the error ; ssh: connect to host 213.xxx.xxx.xx port 22: Connection timed out

I have tried this in my homestead

ssh -fNg -L 3333:localhost:3306 user@213.xxx.xxx.xx

This is my .env db settings

 DB_CONNECTION=mysql
 DB_HOST=213.xxx.xxx.xx
 DB_PORT=3306
 DB_DATABASE=dbname
 DB_USERNAME=user
 DB_PASSWORD=xxxxxxx

I am not sure why the connection to the remote database is timing out. Any ideas to help is muchly appreciated.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire