Velvet Star Monitor

Standout celebrity highlights with iconic style.

news

How come I get "mysqld.service failed to load: No such file or directory."

Writer Sophia Terry

Following this tutorial, I'm getting

# sudo service mysqld start

Failed to start mysqld.service: Unit mysqld.service failed to load: No such file or directory.

2 Answers

The mysql daemon in Ubuntu is packaged as mysql, not mysqld.

sudo service mysql start

That's really all there is to that one.

2

WARNING: This solution will destroy any DB data you have. DO NOT use it if you have DB data you intend to keep!

I got stuck with the same issue and I uninstalled and installed again by following the following commands:

  1. sudo apt-get --purge remove mysql-server mysql-common mysql-client.

  2. sudo apt update && sudo apt dist-upgrade && sudo apt autoremove.

  3. sudo apt-get install -y mysql-server mysql-client.

3

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy