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.
First, open the Run window by using the Windows+R keyboard. Second, type services. msc and press Enter : Third, select the MySQL service and click the restart button.
Installation. Once the installation is complete, the MySQL server should be started automatically. You can quickly check its current status via systemd: sudo service mysql status ● mysql.
This means that you do not have the MySQL client program (it’s called mysql, as opposed to the server (daemon) program, which is called mysqld) installed on your machine. Thank you so much. Thank a lot dude !! Thank you so much!!! ARIGATO!! Thanks, Man ! Failed to start mysql.service: Unit mysql.service not found.
Job for mysql.service failed because the control process exited with error code. See "systemctl status mysql.service" and "journalctl -xe" for details. Failed to start LSB: Start and stop the mysql database server daemon.
If you have the same issue, then first of all you have to check that, if your disk is full then your MySQL cannot start. Sometime this problem occurring only when if you made some changes in your log files.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With