Rank 3: Container
Hi.
Where can I find the Managed Database Env because I want to use Managed MariaDB.
Votes
0
Replies
16
Participants
Unknown
Messages
17
Rank 3: Container
Hi.
Where can I find the Managed Database Env because I want to use Managed MariaDB.
Rank 3: Container
And what to change to Change to Managed DB?
Hey
Can you elaborate a bit about this?
Rank 3: Container
Yeah. If I want to Change from local Database to Managed Db for Appwrite, What env variables to Change?
Rank 7: Quantum Computer
For now you can run AppWrite with MariaDB only so if you want to have managed one you'll need to update the following variables
_APP_DB_HOST - Your managedDB host.
_APP_DB_PORT - Your managedDB port
_APP_DB_SCHEMA - Through what scheme, if exporting and importing leave it on appwrite
_APP_DB_USER - Your managedDB Don't run on root
_APP_DB_PASS - User passwwod
_APP_DB_ROOT_PASS - Root password
The quick way would be to dump all the current database data and import it to a remote one
Rank 7: Quantum Computer
P.S, You can this vars inside either the docker-compse.yml or the .env in the path /root/appwrite or your appwrite location (if you created a custom one)
It is better to edit the values inside the .env file
Hmm so. So Matej once mentioned that: As of right now, Appwrite only allows you to connect to MariaDB, but we plan to support any database backend, such as MySQL, Postgres or MongoDB.
Gladly, Appwrite API is built in a way that database layer does not make much of a difference, what matters, is the API structure that you consume. It might feel a bit strange for someone with backend experience to see extra layer on top of database that Appwrite uses, but it's there to create consistency no matter what database you will choose in future.
However, if you do want to try managedDB, you need to make changes as mentioned by @Binyamin
However do you want to share about what you are trying to do with your managed DB and then maybe we could try doing it other ways ?
Rank 3: Container
I'm Currently using Appwrite with K8S and Its good.
Rank 3: Container
I don't want to manage database on Local server. Because I need to Take care of Redundancy & HA & Backups etc,.
Rank 3: Container
If I use managed DB I dont need to Care about any of those
Rank 7: Quantum Computer
That sounds logical
Admin
any chance you'll be sharing insights on this? 😁
Rank 3: Container
Can you explain what you mean Mr. Steven?
Admin
like how you set up Appwrite on K8s. Are you using Appwrite Functions too?