mysql server broken after upgrade to ubuntu 16.04

dpkg: error processing package mysql-server-5.7

fix with purge


# backup database, if something get wrong

sudo cp -r /var/lib/mysql ~

# remove all mysql-server

sudo apt-get purge mysql-server-*

# install mysql

sudo apt-get install mysql-server

# start mysql

sudo service mysql start

then you can login with your old password mysql root

Published by

G3n1k

just to remember what i had known :)

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s