Configuring mysql-server-5.7 (5.7.11-0ubuntu6) …
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 with
mysql-server-5.7 (--configure):apt-get remove返回相同的结果。
从15.10升级到16.04时会出现此错误
发布于 2016-04-25 21:51:52
我找到了解决方案here
删除mysql的所有文件:rm -r /var/lib/mysql*
mysql_install_db -u mysql (可能不适用于较新的系统,但不用担心)
systemctl unmask mysql.service
service service mysql starthttps://stackoverflow.com/questions/36803762
复制相似问题