Accessing one database from multiple apps?
Solved
Support
-
I've read the docs about how MySQL works in Cloudron.
- Each app has its own DB (addon) inside its own container, keeping things nicely isolated and secure
But let's say I have 2 very simple LAMP apps needing to access a single DB... is there any way to accomplish this with Cloudron?
Thanks.
-
You can take the mysql credentials from one app container and use it in the other. But this comes with some side effects that you should be aware of:
- If you restore an app, or import from backup , the mysql credentials change. You have to then re-configure the other app also.
- When you app backup the other LAMP app, it's not "complete" because the database is owned by the other app. The database will be part of the other app's backup though.
-
-