Comment 34 for bug 1447944

Revision history for this message
Robie Basak (racb) wrote : Re: Cannot access mariadb after upgrading to Ubuntu 15.04: Plugin 'unix_socket' is not loaded

Ending up with /etc/mysql/my.cnf.migrated is currently expected and intended behaviour if you had previously customised configuration. In this case you are required to either manually update your customisations or explicitly choose to drop your customisations and switch back to packaging configuration defaults.

So the symlink will end up pointing to /etc/mysql/my.cnf.migrated if you had previously customised /etc/mysql/my.cnf (which gets renamed to /etc/mysql/my.cnf.migrated to make way for the symlink). This is because Debian policy says that if the user customises configuration in /etc, then that should not be overridden. So in that case packaging assumes that you know what you're doing, leaving it up to you to update your customised configuration for changes in the new release. There are comments at the top of /etc/mysql/my.cnf.migrated (IIRC) that explain how to switch back to the packaging default configuration if you wish. I think it's just a one line call to update-alternatives?

I welcome ideas on improving this experience though. I certainly didn't expect anything to regress by simply copying forward the same my.cnf. Perhaps we should provide a debconf notice telling the user what has happened when my.cnf.migrated is used? Or otherwise, what else can we do in the case of a previously customised configuration?