[Bug 1210426] [NEW] Mysql daemon does not start - corrupted init script

Peter Júnoš 1210426 at bugs.launchpad.net
Fri Aug 9 07:43:44 UTC 2013


Public bug reported:

After last upgrade, mysqld 5.5.32-0ubuntu does not start.

Fix:
edit /etc/init/mysql.conf and replace
    # check for diskspace shortage
    datadir=`mysqld_get_param datadir`
    if LC_ALL=C BLOCKSIZE= df --portability $datadir/. | tail -n 1 | awk '{ exit ($4<4096) }'; then

with
    # check for diskspace shortage
    datadir=/var/lib/mysql
    if LC_ALL=C BLOCKSIZE= df --portability $datadir/. | tail -n 1 | awk '{ exit ($4>4096) }'; then

edit "datadir" to point to your datadir - this is default configuration.

$ cat /etc/lsb-release 
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=13.04
DISTRIB_CODENAME=raring
DISTRIB_DESCRIPTION="Ubuntu 13.04"

** Affects: mysql-5.5 (Ubuntu)
     Importance: Undecided
         Status: Confirmed

** Package changed: upstart (Ubuntu) => mysql-5.5 (Ubuntu)

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to upstart in Ubuntu.
https://bugs.launchpad.net/bugs/1210426

Title:
  Mysql daemon does not start - corrupted init script

Status in “mysql-5.5” package in Ubuntu:
  Confirmed

Bug description:
  After last upgrade, mysqld 5.5.32-0ubuntu does not start.

  Fix:
  edit /etc/init/mysql.conf and replace
      # check for diskspace shortage
      datadir=`mysqld_get_param datadir`
      if LC_ALL=C BLOCKSIZE= df --portability $datadir/. | tail -n 1 | awk '{ exit ($4<4096) }'; then

  with
      # check for diskspace shortage
      datadir=/var/lib/mysql
      if LC_ALL=C BLOCKSIZE= df --portability $datadir/. | tail -n 1 | awk '{ exit ($4>4096) }'; then

  edit "datadir" to point to your datadir - this is default
  configuration.

  $ cat /etc/lsb-release 
  DISTRIB_ID=Ubuntu
  DISTRIB_RELEASE=13.04
  DISTRIB_CODENAME=raring
  DISTRIB_DESCRIPTION="Ubuntu 13.04"

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.5/+bug/1210426/+subscriptions




More information about the foundations-bugs mailing list