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

add basedir when starting mysqld #4993

Merged
merged 2 commits into from
Jul 15, 2019
Merged

Conversation

morgo
Copy link
Contributor

@morgo morgo commented Jul 15, 2019

Currently mysqlctl does not always specify the basedir when launching mysqld (it does when launching to initialize a datadir, but not for launching mysqld afterward).

This can lead to cases where the plugindir cannot be discovered, and plugins cannot be loaded.

Fixes #4992

Signed-off-by: Morgan Tocker tocker@gmail.com

Fixes vitessio#4992

Signed-off-by: Morgan Tocker <tocker@gmail.com>
@morgo morgo requested a review from sougou as a code owner July 15, 2019 01:10
Signed-off-by: Morgan Tocker <tocker@gmail.com>
@sougou sougou merged commit fb427b4 into vitessio:master Jul 15, 2019
@morgo morgo deleted the morgo-basedir branch July 15, 2019 05:37
arg := []string{
"--defaults-file=" + cnf.path}
"--defaults-file=" + cnf.path,
"--basedir" + mysqlBaseDir,
Copy link

Choose a reason for hiding this comment

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

@morgo @sougou pretty sure you want an = after basedir here

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Thanks! It will be fixed in #5027

morgo added a commit to planetscale/vitess that referenced this pull request Jul 27, 2019
Signed-off-by: Morgan Tocker <tocker@gmail.com>
deepthi added a commit that referenced this pull request Jul 27, 2019
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.

mysqlctl does not set basedir
3 participants