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

[bitnami/mysql] The mysql container cannot initialize two or more databases when it is started. #73417

Open
linwanlong opened this issue Oct 19, 2024 · 1 comment
Assignees
Labels
mysql tech-issues The user has a technical issue about an application triage Triage is needed

Comments

@linwanlong
Copy link

linwanlong commented Oct 19, 2024

Name and Version

bitnami/mysql:latest

What architecture are you using?

arm64

What steps will reproduce the bug?

mysql:
    image: bitnami/mysql:latest
    environment:
      MYSQL_DATABASE: lwl1,lwl2
  1. Initializing the database using environment variables failed

What is the expected behavior?

Multiple initialized databases can be generated through environment variables

What do you see instead?

image
Only one database is generated

Additional information

It is hoped that multiple database libraries can be initialized through environment variables

@linwanlong linwanlong added the tech-issues The user has a technical issue about an application label Oct 19, 2024
@github-actions github-actions bot added the triage Triage is needed label Oct 19, 2024
@javsalgar javsalgar changed the title The mysql container cannot initialize two or more databases when it is started. [bitnami/mysql] The mysql container cannot initialize two or more databases when it is started. Oct 21, 2024
@javsalgar
Copy link
Contributor

Hi!

I'm afraid that the env var is meant to be used with a single database. For more advanced operations like initializing more than one database, our advice is to use init scripts.

https://github.com/bitnami/containers/tree/main/bitnami/mysql#initializing-a-new-instance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mysql tech-issues The user has a technical issue about an application triage Triage is needed
Projects
None yet
Development

No branches or pull requests

2 participants