[debian-mysql] Bug#798080: #798080

Tordek kedrot at gmail.com
Fri Feb 19 09:18:23 UTC 2016


The issue seems to be that mysqld_safe is not supposed to be used alongside systemd. As per [0], mysqld_safe keeps mysqld alive, duplicating systemd's work and interfering with its own mechanism to restart the server.

My workaround has been to run

    sudo systemctl edit mysql

and set the contents to

    [Service]
    ExecStart=
    ExecStart=/usr/sbin/mysqld

And the correct solution should be to set ExecStart in /lib/systemd/system/mysql.service to

    ExecStart=/usr/sbin/mysqld

[0] https://dev.mysql.com/doc/refman/5.7/en/server-management-using-systemd.html
-- 
Guillermo O. «Tordek» Freschi. Programador, Escritor, Genio Maligno.
http://tordek.me :: http://twitter.com/tordek



More information about the pkg-mysql-maint mailing list