Cannot start mysql - Unit mysql.service is masked

Colin Law clanlaw at gmail.com
Thu Sep 30 14:38:20 UTC 2021


On Thu, 30 Sept 2021 at 15:36, Colin Law <clanlaw at gmail.com> wrote:
>
> On Thu, 30 Sept 2021 at 15:14, Shu Shang <yzshangs at 126.com> wrote:
> >
> > I have asked this on askubuntu and no one replied so I thought of asking
> > here.
> >
> >
> > I am trying to install phpMyAdmin and it complained about not able to
> > connect to MySQL server. It seems that the relevant services are not
> > started but I cannot start it.
> >
> > Here is the results of some commands I run.
> >
> > # mysql -v
> > ERROR 2002 (HY000): Can't connect to local MySQL server through socket
> > '/var/run/mysqld/mysqld.sock' (2)
> > # service mysql stop
> > # service mysql start
> > Failed to start mysql.service: Unit mysql.service is masked.
>

Also make sure your system is fully up to date
sudo apt update && sudo apt full-upgrade

Colin




More information about the ubuntu-users mailing list