MySQL Forums
Forum List  »  MySQL & Kubernetes

Attach a pre-filled database to docker mysql
Posted by: Jagdip Ajimal
Date: July 18, 2020 04:37PM

I current create a mySql docker container using the image, and then run scripts to create the schema for the database and insert some data. My problem is that the insert scripts are taking some time to complete (~60 seconds), such that my other startup processes in other docker containers are failing as the database is not ready.

Is there anyway to create a pre-filled mysql database and attach is to the docker instance instead.

(Note I am a complete novice to MySql, but have been using SQL Server to over 15 years)

Options: ReplyQuote


Subject
Written By
Posted
Attach a pre-filled database to docker mysql
July 18, 2020 04:37PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.