Failed to restart mysql.service: Unit mysql.service is masked in Ubuntu 20.04 after an upgrade from 18.4

Viewed 24322

I upgraded my ubuntu from ubuntu 18.04 to ubuntu 20.04. On running my MySQL via the terminal, I am not able to access my DBS on running the command

 service MySQL start

I get the error message

Unit mysql.service is masked.
1 Answers

If you are receiving the error message

MySQL services are masked

I simply solved mine by running the below code

systemctl unmask mysql.service

Then restart your MySQL

service mysql start
Related