Comment 2 for bug 1567612

Revision history for this message
Bodo Brance (bodobr) wrote : Re: package mysql-server-5.7 not installed failed to install/upgrade: subprocess installed post-installation script returned error exit status 11

Turns out that when dpkg configures the package, it tries to run mysql_upgrade with the root user and no password, which is insane to do to a database.

I propose that the dpkg prompts the user for a username and then runs:
     mysql_upgrade -u $user -p
and then the user is asked for a password.