mysql maintainer scripts fail if files in /etc/mysql have been deleted locally
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-5.5 (Ubuntu) |
Invalid
|
Undecided
|
Unassigned | ||
mysql-5.6 (Ubuntu) |
Invalid
|
Undecided
|
Sonu Rajput | ||
mysql-5.7 (Ubuntu) |
Invalid
|
Undecided
|
Sonu Rajput |
Bug Description
A common report is that MySQL-related maintainer scripts have failed after files in /etc/mysql/ have been deleted. This is expected behaviour since policy is that users' modifications of conffiles (for example, files in /etc/mysql/) should be preserved.
The logic is that if you have modified /etc/mysql/, it is presumed that those modifications are what you want. Packaging cannot fix up any broken customizations for you, so for example if you have deleted those files, then packaging will be broken.
Before attempting to fix this up, make sure to take a full backup of your system and in particular any databases (by default in /var/lib/mysql) in case your attempt results in destruction of your data.
To fix this situation up, you could try purging all mysql-related packages (particularly mysql-common, mariadb-server-* and/or mysql-server-*) and reinstalling them. Note that just removing the packages will not work since dpkg will preserve your local modifications to /etc/mysql/ as designed.
Since this behaviour is by design, this is not a bug in Ubuntu that will be fixed and so this bug's status is set to Invalid to reflect this. Please note that the bug tracker is not a support forum. Although you are welcome to communicate with other affected users here, please do not expect help here since the community doesn't generally monitor bugs for this purpose.
If you are still having problems, then you can find pointers to get help for this sort of problem here: http://
Changed in mysql-5.6 (Ubuntu): | |
status: | New → Invalid |
Changed in mysql-5.5 (Ubuntu): | |
status: | New → Invalid |
Changed in mysql-5.7 (Ubuntu): | |
status: | New → Invalid |
tags: | added: triage |
Changed in mysql-5.6 (Ubuntu): | |
assignee: | nobody → Aldo (aldocr07) |
Changed in mysql-5.7 (Ubuntu): | |
assignee: | nobody → Aldo (aldocr07) |
Changed in mysql-5.6 (Ubuntu): | |
assignee: | Aldo (aldocr07) → Sonu Rajput (sonurajput) |
Changed in mysql-5.7 (Ubuntu): | |
assignee: | Aldo (aldocr07) → Sonu Rajput (sonurajput) |
In my case I had MySQL and wanted to install MariaDB. After using MariaDB for some time I decided it was not for me and tried to go back to MySQL. That's when hell started. There is no way to recover what I had before and everything I try seems to fail. I thought I had it finally working but I now get these MySQL crashes all the time.