Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

is it possible to link multiple apps to single mysql container with separate database per app? #44

Closed
kminek opened this issue Mar 13, 2016 · 5 comments

Comments

@kminek
Copy link

kminek commented Mar 13, 2016

i would love to see an example code in the documentation

@kminek kminek changed the title is it possible to link multiple apps to single mysql container with separate database name per app? is it possible to link multiple apps to single mysql container with separate database per app? Mar 13, 2016
@josegonzalez
Copy link
Member

This functionality is being tracked in #35, and is not possible at this time. Please see that issue for more information.

@josegonzalez
Copy link
Member

See dokku/dokku-redis/issues/64 for more information.

@spnkr
Copy link

spnkr commented Jun 13, 2018

why not just open up the mysql console and make a new db for your app

> mysql -u[get this from your dokku mysql config] -p -h[get this from your dokku mysql config]
Enter password: > [get this from your dokku mysql config] ;

> create database mynewdatabase;
# then make users for this db, store the unames/passwords as ENV vars or whatever
> exit;

@spnkr
Copy link

spnkr commented Jun 13, 2018

Note I started using dokku-mysql literally 1h ago so I don't know if the above solution is a good one

@josegonzalez
Copy link
Member

That works fine, but the DATABASE_URL will be wrong.

For further discussion, please see the linked issue.

@dokku dokku locked and limited conversation to collaborators Jun 13, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants