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.
Does this answer your question? Failed to start redis.service: Unit redis-server.service is masked
–
In addition to being a duplicate, this is a question about server administration, not programming.
–
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
Yes but, why was it masked?
–
2Currently we can say its an upstream error while moving from any version of MySQL lower than MySQL version 8.X – stanley mbote Dec 7, 2020 at 11:44
2I have used mysql for the better part of my coding experience and I have had a fair deal of issues with it but thanks to the support from the community I have always found work around. – stanley mbote Jun 16, 2021 at 16:00
source : https://stackoverflow.com/questions/65092669/failed-to-restart-mysql-service-unit-mysql-service-is-masked-in-ubuntu-20-04-af