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.
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.