[debian-mysql] Bug#843959: can't upgrade if not running all the time

積丹尼 Dan Jacobson jidanni at jidanni.org
Fri Nov 11 08:15:22 UTC 2016


Package: mysql-server
Version: 5.7.16-1

Some of us don't see the point of having mysql running all the time.

So we disable it.

This causes:
Setting up mysql-server-5.7 (5.7.16-1) ...
insserv: warning: current start runlevel(s) (empty) of script `mysql' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script `mysql' overrides LSB defaults (0 1 6).
mysql_upgrade: Got error: 2002: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) while connecting to the MySQL server
Upgrade process encountered error and will not continue.
mysql_upgrade failed with exit status 11
dpkg: error processing package mysql-server-5.7 (--configure):
 subprocess installed post-installation script returned error exit status 1
dpkg: dependency problems prevent configuration of mysql-server:
 mysql-server depends on mysql-server-5.7; however:
  Package mysql-server-5.7 is not configured yet.

dpkg: error processing package mysql-server (--configure):
 dependency problems - leaving unconfigured
Errors were encountered while processing:
 mysql-server-5.7
 mysql-server

upon every upgrade.

Well why don't you start the server in this case,
or have a configuration item:
if $user_approves_is_set
then
        start mysql
        do upgrade
        stop mysql
fi



More information about the pkg-mysql-maint mailing list