-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
mysql service not coming up for existing data directory mount #370
Comments
That is possible it could take that long on a large database. I don't have a database of that size to test against. Any more information about how/where you are running this that would cause limitations on hard drive access? ( Since #161 you can also just run a $ docker run -d --user 1000:1000 -e MYSQL_ROOT_PASSWORD=12345 mysql |
Thanks yosifkit I was using the kubernetes to create the mysql container. It look good now after adding below code
UID for mysql was 999 for me. Thanks again |
Glad that it is working now! |
@vinaybandakka @yosifkit when you started the mysql service what was the password you entered to authenticate successfully? I keep getting Thanks in advance |
@user1m, $ docker run -d --user 1000:1000 -e MYSQL_ROOT_PASSWORD=12345 mysql Then during the first few seconds a shell script will be running ( |
@yosifkit thanks for the tip. But I'm still running into issues where my container doesn't stay up. Here's the container docker log.
Do you think the |
Either corrupt or your drive is going bad (which is usually when I start to
see IO errors like that).
|
I have data directory with couple of schema and about 25 GB of data. Container starts with volume /var/lib/mysql. When exec to container to see services still mysqld not started by entrypoint script. As you see chown command is still running. Even after 3 hours still chown not finished. It it due to 25GB data mount ? I am using mysql:5.7.20
UID PID PPID C STIME TTY TIME CMD
root 1 0 0 07:29 ? 00:00:00 /bin/bash /usr/local/bin/docker-entrypoint.sh mysqld
root 18 1 0 07:29 ? 00:00:00 chown -R mysql:mysql /var/lib/mysql/
root 19 0 0 07:31 ? 00:00:00 bash
The text was updated successfully, but these errors were encountered: