Hi,

I had the same error. I solved this by one command:
sudo systemctl enable mysql

Than I had to start MySql:
sudo service mysql start

After this I was able to update:
sudo apt dist-upgrade 


One could try to recreate this bug by disabling MySql before upgrade:
sudo systemctl disable mysql


I hope this helped you.

Regards,

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1605948

Title:
  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1605948/+subscriptions

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to