e Learning

start: Unknown job: mysql Ubuntu Server


I am trying to restart the MySQL server on Ubuntu using service mysql restart command. But I only get Following Error.

stop: Unknown job: mysql
start: Unknown job: mysql

Error says unknown job mysql, but mysql is working properly and I can even login to console.


This is Definitely a Permission issue. Are you not trying to restart mysql server as root user? You need to have root privileges to restart services on Ubuntu or you can use sudo command.

Login as root user and you should able to restart mysql. Or use sudo in front of the command as below.

sudo service mysql restart

When prompted for the password, Type Your own user Password.