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

/etc/mysql/my.cnf is destroyed in latest version of Percona Server (8.0.36-28) #49

Open
jstaf opened this issue Mar 12, 2024 · 0 comments · May be fixed by #51
Open

/etc/mysql/my.cnf is destroyed in latest version of Percona Server (8.0.36-28) #49

jstaf opened this issue Mar 12, 2024 · 0 comments · May be fixed by #51
Assignees

Comments

@jstaf
Copy link

jstaf commented Mar 12, 2024

The latest version of Percona Server 8.0 (8.0.36-28) blows away the /etc/mysql/my.cnf file without asking. This makes it unsafe to use /etc/mysql/my.cnf for configuration.

https://github.com/percona/percona-server/blob/release-8.0.36-28/build-ps/debian/percona-server-server.postinst#L178-L184

		# If the existing config file is a proper file, we back it up
		if [ -f "/etc/mysql/my.cnf" ] && [ ! -L "/etc/mysql/my.cnf" ]; then
			cp /etc/mysql/my.cnf /etc/mysql/my.cnf.bak
			echo "WARNING: /etc/mysql/my.cnf moved to /etc/mysql/my.cnf.bak"
			echo "Please use etc/mysql/mysql.conf.d for any custom configuration settings"
		fi
		update-alternatives --force --install /etc/mysql/my.cnf my.cnf "/etc/mysql/mysql.cnf" 300

This role should switch to using /etc/mysql/mysql.conf.d/ansible.cnf for configuration instead of /etc/mysql/my.cnf. Otherwise the percona-server-server package will overwrite the my.cnf file, erasing all of the configuration from this role and causing a very unpleasant disruption for most people using this role.

@bajo bajo linked a pull request Mar 14, 2024 that will close this issue
@tersmitten tersmitten self-assigned this Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants