Skip to content

MySQL Plugin: create and link my.cnf to allow configuring MySQL#2468

Merged
Lagoja merged 4 commits intojetify-com:mainfrom
clessg:mysql-plugin
Jan 3, 2025
Merged

MySQL Plugin: create and link my.cnf to allow configuring MySQL#2468
Lagoja merged 4 commits intojetify-com:mainfrom
clessg:mysql-plugin

Conversation

@clessg
Copy link
Contributor

@clessg clessg commented Dec 21, 2024

Summary

Adds a $MYSQL_CONF env var to the MySQL Plugin to allow a custom my.cnf (MySQL config file). MySQL does not provide an environment variable, command line flag, or anything else to change the location (it's always computed as $MYSQL_HOME/my.cnf), so we simply create a symlink there pointing to the user's config.

How was it tested?

  • Forked devbox, made changes to the mysql plugin, and ensured everything worked in a custom project.

@Lagoja
Copy link
Collaborator

Lagoja commented Jan 2, 2025

Thanks, this is an awesome addition!

I added a similar feature for MariaDB, and also tweaked the detection logic for MySQL vs. MariaDB

@clessg
Copy link
Contributor Author

clessg commented Jan 2, 2025

Hey John, thank you, looks perfect to me!

@Lagoja Lagoja merged commit 199dc92 into jetify-com:main Jan 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants