anon28410
anon284104w ago

Database Naming Process · Issue #432 · c...

Interesting, well unless I am missing something the amazon docs don't actually give any information regarding naming constraints, opting to only tell you at creation. I just wanted to spin a local instance up using a random database I had handy that happened to be on a server using CloudPanel. They seem to be under the assumption underscores are not supported on RDS https://github.com/cloudpanel-io/cloudpanel-ce/issues/432 Regardless though, I do think having an option to set a custom database name that is not intrinsically tied to the instance name would be preferred.
GitHub
Database Naming Process · Issue #432 · cloudpanel-io/cloudpanel-ce
CloudPanel version(s) affected 2.4.1 Description this again not a bug but a better improvements when creating databases. It seems like we can't use _. for exampe, dev_domain or staging_domain. ...
7 Replies
nipunn
nipunn4w ago
GitHub
convex-backend/self-hosted/docker/docker-compose.yml at main · get...
The open-source reactive database for app developers - get-convex/convex-backend
nipunn
nipunn4w ago
what makes it seem like you're limited? there's a lot of customizability to the self hosting offering.
anon28410
anon28410OP4w ago
My understanding is that the database url for both postgres and mysql don't support adding a database name. Can you clarify how you are supposed to unlink the instance and database name? the database url seems to only be database user/pass, host and port For example, the current implementation seems to work like this:
CONVEX_DATABASE_URL=mysql://user:password@127.0.0.1:3306
CONVEX_INSTANCE_NAME=example-instance-name
CONVEX_DATABASE_URL=mysql://user:password@127.0.0.1:3306
CONVEX_INSTANCE_NAME=example-instance-name
Will try and connect to a database called example_instance_name
nipunn
nipunn4w ago
ah I am mistaken. They are linked in this way. From looking at persistence_args_from_cluster_url in the codebase
anon28410
anon28410OP4w ago
Ah okay, well personally this feels both unintuitive and unnecessarily limiting. Having an additional env var for a preferred db name would be a great addition. 👍
nipunn
nipunn4w ago
yep seems sensible to have more control. Feel free to fork and/or send a PR with the behavior you desire here.

Did you find this page helpful?