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

Update socket location for mysql clients #830

Merged
merged 1 commit into from
Feb 28, 2022

Conversation

yosifkit
Copy link
Member

The updated my.cnf is enough for mysql but mysqlsh --mysql still uses the compiled in value, so we need the symlink in the data directory. mysqlsh [user]@localhost works since it uses the mysqlx port of 33060 by default.

Fixes #829

@@ -379,6 +391,7 @@ _main() {
mysql_note "MySQL init process done. Ready for start up."
echo
fi
mysql_socket_fix
Copy link
Member

Choose a reason for hiding this comment

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

For mysqlsh to work in docker-entrypoint-initdb.d scripts too, this needs to happen after docker_init_database_dir too, right? (maybe this becomes else instead of outside the if?)

@tianon tianon requested a review from ltangvald February 25, 2022 17:24
Copy link
Collaborator

@ltangvald ltangvald left a comment

Choose a reason for hiding this comment

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

LGTM!

@yosifkit yosifkit merged commit 37981f6 into docker-library:master Feb 28, 2022
@yosifkit yosifkit deleted the sockets branch February 28, 2022 18:43
docker-library-bot added a commit to docker-library-bot/official-images that referenced this pull request Feb 28, 2022
Changes:

- docker-library/mysql@37981f6: Merge pull request docker-library/mysql#830 from infosiftr/sockets
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.

Wrong socket path when connecting from within container
3 participants