Eugeny / ajenti-v

Virtual Hosting addon for Ajenti
ajenti.org/#product-ajenti-v
MIT License
225 stars 80 forks source link

External Database, two servers. #257

Open laerciocrestani opened 7 years ago

laerciocrestani commented 7 years ago

Hello guys.

I have two servers, running on the same private network, but there are two machines, one with Ajenti for (www) and on the other machine only the database (mysql and postgres). When I create a new website I have how to point the database to the other local IP? it's possible? Or do I have to have everything on the same machine?

Sithira commented 7 years ago

This is something you can do with MySQL itself. To guide you through the process, if I brief about it, put your server 1 (www) address to the server 2 (MySQL) as a new user. Then you can access the server 2 using server 1 using the new user you created for MySQL