2021年3月3日星期三

Connection timed out - Web & Database Server - Laravel Forge

I have a little problem. I did the next steps:

  1. I created a "Database Server" in Laravel Forge. Ok

  2. I created a "Web Server" in Laravel Forge. Ok

  3. I go to Networks in my Database Server and I select my Web Server and click Update. Ok

  4. I connected to my Database Server in Sequel Pro. Ok

  5. I installed my Laravel App in Web Server. Ok

  6. I configured the .env in Web Server. Ok

  7. I Run migrations. FAIL.

I got Connection timed out.

If I change the order, I remove the Web Server from Network of my Database Server, and I check the Database Server in Networks from my Web Server, I got Connection refused.

And if both Network are selected in both servers, again Connection refused.

My .env is the next:

DB_CONNECTION=mysql  DB_HOST=IP  DB_PORT=3306  DB_DATABASE=MYDB  DB_USERNAME=MYUSER  DB_PASSWORD=MYPASS  

In DB_HOST I put the public IP and private IP, same results.

What I'm missing?

Thanks all!

https://stackoverflow.com/questions/66467104/connection-timed-out-web-database-server-laravel-forge March 04, 2021 at 08:59AM

没有评论:

发表评论