Rank 3: Container
I have Setuped a Managed Mariadb. And I changed the APP_DB_xx to the server IP, Username & Pass . But I can't connect to it?
Votes
3
Replies
24
Participants
Unknown
Messages
25
Rank 3: Container
I have Setuped a Managed Mariadb. And I changed the APP_DB_xx to the server IP, Username & Pass . But I can't connect to it?
Rank 3: Container
I get Database not ready. Retrying connection (4)...
Rank 3: Container
Im using IP of the VPS to Connect
Rank 3: Container
but i can connect to the DB using normal CLI
Rank 3: Container
"MariaDB [appwrite]>
MariaDB [appwrite]> SHOW TABLES;
+--------------------------+
| Tables_in_appwrite |
+--------------------------+
| _console__metadata |
| _console__metadata_perms |
+--------------------------+"
Rank 3: Container
But these tables are automatically created
Rank 3: Container
Anybody there?
Where you have set the server IP fields
Have you restarted your docker environment after changing those values with docker compose up -d?
Rank 3: Container
In the .env file
Rank 3: Container
Yeah I have restarted Multiple times
Rank 3: Container
Rank 3: Container
These are from MariaDB
Rank 3: Container
They are connected and I see these tables created
Rank 3: Container
Okay.
So seems everything intact.
Where you run that?
Rank 3: Container
Rank 3: Container
I have setup a VPS in Vultr with MariaDB installed
Rank 3: Container
I SSHed into the server and ran that command
Into which server
The Appwrite
Or
The MarisDB one?
Rank 3: Container
In the MARIADB
Okay. So first you need to be sure that you're able to ping the db instance from the appwrite
Can you verify that?
Rank 3: Container
Yep. I just Did that. I also used Telnet . I connected from Appwrite Container to MariaDB successfully