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.
如果您的数据库堆栈是bitnami,则有一个打开端口的过程,并且如果您的堆栈在AWS上并且是bitnami堆栈,则必须在Amazon的云平台中打开端口
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.