[debian-mysql] Bug#795272: mysql-server-5.5: mysql_install_db runs as root, creating tables and binlogs owned by root instead of mysql

Colin Leroy colin at colino.net
Wed Aug 12 13:21:11 UTC 2015


Package: mysql-server-5.5
Version: 5.5.44-0+deb7u1
Severity: important

Hi,
This bug happened already with mysql-server-5.1 (#663000) and has
already been fixed in Jessie (#737224). It still happens on Wheezy,
which is what my servers use.

The problem happens if mysql_install_db creates tables but also is
binlogging is enabled, in which case *.bin logs are created owned by
root:root instead of mysql:mysql.

It can prevent mysql from restarting, with a permission denied error.

Here is a debdiff to fix it.

I hope this helps and can be integrated!

Thanks for your work.

-- System Information:
Debian Release: 7.8
  APT prefers oldstable-updates
  APT policy: (500, 'oldstable-updates'), (500, 'oldstable')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.32-5-amd64 (SMP w/8 CPU cores)
Locale: LANG=fr_FR.UTF-8, LC_CTYPE=fr_FR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash


-- 
Colin
-------------- next part --------------
A non-text attachment was scrubbed...
Name: mysql-server-5.5-fix-postinst.debdiff
Type: application/octet-stream
Size: 1323 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20150812/44478b65/attachment.obj>


More information about the pkg-mysql-maint mailing list