mysql refuses to start because missing !includedir configuration directory
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
mysql-dfsg-5.1 (Ubuntu) |
Triaged
|
Low
|
Unassigned |
Bug Description
root@xnote:~# lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04
henning@xnote:~$ apt-cache policy mysql-server-5.0
mysql-server-5.0:
Installed: 5.0.51a-3ubuntu5.4
Candidate: 5.0.51a-3ubuntu5.4
Version table:
*** 5.0.51a-3ubuntu5.4 0
500 file: hardy-security/main Packages
100 /var/lib/
5.
500 file: hardy/main Packages
Corecting name and adding the state of things at the beginning:
mysqld is not starting when /etc/mysql/conf.d is not empty, even though it contains only optional information.
In conjunction with bug 305107 this leads to mysql failing to start after a security upgrade from the default version in the normal apt repository to the newest security update version.
More explanation below:
---
I just did a security upgrade for my Hardy system, and after the reboot, mysql refuses to start!
Errors already appear at system start, here the output of the command when I try to start the server manually after system start(errors are the same):
/etc/init.d/mysql restart
open: Permission denied
* Stopping MySQL database server mysqld /usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
open: Permission denied
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
open: Permission denied
* Starting MySQL database server mysqld /usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
/usr/sbin/mysqld: Can't read dir of '/etc/mysql/
Fatal error in defaults handling. Program aborted
open: Permission denied
root@xnote:~# lsb_release -rd
Description: Ubuntu 8.04
Release: 8.04
root@xnote:~# dpkg -l mysql*
Desired=
| Status=
|/ Err?=(none)
||/ Name Version Description
+++-===
ii mysql-admin 5.0~rc12-2ubuntu1 GUI tool for intuitive MySQL administration
un mysql-admin-common <none> (no description available)
ii mysql-client 5.0.51a-3ubuntu5.4 MySQL database client (meta package depending on the latest version)
un mysql-client-4.1 <none> (no description available)
ii mysql-client-5.0 5.0.51a-3ubuntu5.4 MySQL database client binaries
ii mysql-common 5.0.51a-3ubuntu5.4 MySQL database common files
un mysql-community
un mysql-community
un mysql-doc-5.0 <none> (no description available)
un mysql-enterpris
un mysql-enterpris
un mysql-gpl-client <none> (no description available)
ii mysql-gui-
un mysql-navigator <none> (no description available)
un mysql-proxy <none> (no description available)
ii mysql-query-browser 5.0~rc12-2ubuntu1 Official GUI tool to query MySQL database
un mysql-query-
ii mysql-server 5.0.51a-3ubuntu5.4 MySQL database server (meta package depending on the latest version)
un mysql-server-4.1 <none> (no description available)
ii mysql-server-5.0 5.0.51a-3ubuntu5.4 MySQL database server binaries
un mysqltcl <none> (no description available)
description: | updated |
Changed in mysql-dfsg-5.0: | |
importance: | Undecided → Low |
Changed in mysql-dfsg-5.0: | |
status: | Confirmed → Triaged |
affects: | mysql-dfsg-5.0 (Ubuntu) → etckeeper (Ubuntu) |
affects: | etckeeper (Ubuntu) → mysql-dfsg-5.1 (Ubuntu) |
Hmm, simple workaround:
mkdir /etc/mysql/conf.d
helps!