Setting up mysql-server-5.7 (5.7.11-0ubuntu6) ...
Installing new version of config file /etc/apparmor.d/usr.sbin.mysqld ...
Installing new version of config file /etc/init.d/mysql ...
Installing new version of config file /etc/init/mysql.conf ...
Installing new version of config file /etc/logrotate.d/mysql-server ...
Installing new version of config file /etc/mysql/debian-start ...
update-alternatives: using /etc/mysql/mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode
mysql start/running, process 11230
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
mysql_upgrade: [ERROR] 1007: Can't create database 'performance_schema'; database exists
mysql_upgrade failed with exit status 5
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1
From log:
Setting up mysql-server-5.7 (5.7.11-0ubuntu6) ... d/usr.sbin. mysqld ... mysql.conf ... d/mysql- server ... debian- start ... alternatives: using /etc/mysql/ mysql.cnf to provide /etc/mysql/my.cnf (my.cnf) in auto mode schema' ; database exists
Installing new version of config file /etc/apparmor.
Installing new version of config file /etc/init.d/mysql ...
Installing new version of config file /etc/init/
Installing new version of config file /etc/logrotate.
Installing new version of config file /etc/mysql/
update-
mysql start/running, process 11230
Checking if update is needed.
Checking server version.
Running queries to upgrade MySQL server.
mysql_upgrade: [ERROR] 1007: Can't create database 'performance_
mysql_upgrade failed with exit status 5
dpkg: error processing package mysql-server-5.7 (--configure):
subprocess installed post-installation script returned error exit status 1