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

[basics] Add instructions for using MySQL from a Docker container #48

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

jgbarah
Copy link
Contributor

@jgbarah jgbarah commented Oct 26, 2018

Following advice by @filmaj in #36.

Copy link
Contributor

@filmaj filmaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thanks!

If you can tweak which mysql docker image to use, as per my suggestion, then you can remove the last paragraph as well (and make the instructions simpler).

Thanks for putting this together!


```
docker run --env MYSQL_ALLOW_EMPTY_PASSWORD=1 --env MYSQL_ROOT_PASSWORD="" -p 3306:3306 -d mysql/mysql-server:latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
docker run --env MYSQL_ALLOW_EMPTY_PASSWORD=1 --env MYSQL_ROOT_PASSWORD="" -p 3306:3306 -d mysql/mysql-server:latest
docker run -d -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql

With the above suggested change, you can also remove everything about creating a new root user, connecting to the running docker, etc - much simpler! Here are the two docker commands I use to spin up the various infrastructural bits for running tests for grimoirelab programs:

docker run -d -p 3306:3306 -e MYSQL_ALLOW_EMPTY_PASSWORD=yes mysql
docker run -d -p 9200:9200 -p 5601:5601 nshou/elasticsearch-kibana

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.

None yet

2 participants