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

database and table created in mysql automatically using docker compose command #38

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

satispat
Copy link

@satispat satispat commented Mar 1, 2024

Below are the changes made to this file:

  1. Added the init file, so that mysql contianer will pick up the schema for database from the given file(message.sql) at container creation time in command option of mysql service.
  2. Mount sql script(message.sql) into container using volume option of mysql service.
  3. In the message.sql file , the creation and use of db is created so that when container is up and running at that time db and table are getting created automatically.

satispat added 2 commits March 1, 2024 18:49
Below are the changes made to this file:
1) Added the init file, so that mysql contianer will pick up the schema for database from the given file(message.sql) at container creation time in command option of mysql service.
2) Mount sql script into container.
In this message.sql file , the creation and use db is done so that when container is up and running at that time db and table are already created automatically.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant