[debian-mysql] Each mysql install lead to file owned by root instead of 'mysql' in /var/lib/mysql

Stewart Smith stewart.smith at percona.com
Fri Dec 20 05:42:47 UTC 2013


Ghislain <gadnet at aqueos.com> writes:
>   i think the issue lies here in postinst
>
>
> line 122:     chown -R mysql $mysql_statedir
>
> but, run as root:
>
> line 146 : bash /usr/bin/mysql_install_db --rpm 2>&1 | $ERR_LOGGER
>
>
> the  /usr/bin/mysql_install_db  line should have '--user=mysql' or the 
> line 122 should be moved after this one i guess.

FWIW when doing the Percona Server 5.5 packaging, I've got our code with
--user=mysql as I may have hit this too.

-- 
Stewart Smith
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 835 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/pkg-mysql-maint/attachments/20131220/07f925d7/attachment.sig>


More information about the pkg-mysql-maint mailing list