Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Wonka's avatar
Level 1

Forge: Move MySQL to AWS Guide?

Currently, we use laravel forge, connected to digital ocean. The laravel app and database are both on the application server, but when something happens to the application server, we want to still be able to access the database. Since they're both on the same server, we can't until the server is back up after resolving any issues.

It seems wise to move the mysql database created in forge to be running on a mysql database in aws. Is this possible to do? If so, any idea how this can this be accomplished? We looked around but didn't find any guidance on how to achieve this. Has someone done this before that can help point us in the right direction and/or providing a guiding resource?

0 likes
1 reply
Tray2's avatar

Yes it is possible to have a seperate db server.

Digital ocean has that option too so you don't need to use AWS unless you really want to,

I would probably stick with one hosting company instead of two.

All you need to do is change the DB_HOST=127.0.0.1 to the ip of the dedicated database server.

The response time will increase slightly depending on the connection between the http server and the db-server.

Please or to participate in this conversation.