I'm encountering this on apt upgrade:

Setting up mysql-server-8.0 (8.0.27-0ubuntu0.20.04.1) ...
ERROR: Unable to start MySQL server:
mysqld: Can't get stat of '/run/mysqld' (OS errno 2 - No such file or directory)
2021-10-26T06:45:00.600435Z 0 [ERROR] [MY-010119] [Server] Aborting
Please take a look at https://wiki.debian.org/Teams/MySQL/FAQ for tips on 
fixing common upgrade issues.
Once the problem is resolved, run apt-get --fix-broken install to retry.
dpkg: error processing package mysql-server-8.0 (--configure):
 installed mysql-server-8.0 package post-installation script subprocess 
returned error exit status 1
.
.
Errors were encountered while processing:
 mysql-server-8.0
needrestart is being skipped since dpkg has failed
E: Sub-process /usr/bin/dpkg returned an error code (1)

It seems the pre script tests for the existence of /run/mysqld, which doesn't 
exist.

Workaround to get it installed is to create the dir:
sudo mkdir /run/mysqld

then run apt upgrade again; if necessary apt install -f

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

Title:
  Setup of socket: '/var/run/mysqld/mysqlx.sock' failed, can't create
  lock file /var/run/mysqld/mysqlx.sock.lock

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


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

Reply via email to