I have a little problem. I did the next steps:
-
I created a "Database Server" in Laravel Forge. Ok
-
I created a "Web Server" in Laravel Forge. Ok
-
I go to
Networksin my Database Server and I select my Web Server and click Update. Ok -
I connected to my Database Server in Sequel Pro. Ok
-
I installed my Laravel App in Web Server. Ok
-
I configured the
.envin Web Server. Ok -
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
没有评论:
发表评论