3

Today Xampp suddenly stopped working.

When I try to start xampp, then mysql is not running:

enter image description here

After browsing for this issue, I found that

sudo service mysql start

should solve it. However, this casuses the error mentioned in the subject line:

Failed to start mysql.service: Unit mysql.service not found.

What happend and how to fix it? I tried to restart my device but the problem remains.

Adam
  • 2,300
  • 6
  • 33
  • 52
  • [mysql server start failed](https://askubuntu.com/questions/455029/mysql-server-start-failed/697295#697295) may help. – Vijay Nov 23 '18 at 12:38
  • Have you tried launching GUI of XAMPP and starting it from there? – Kulfy Nov 23 '18 at 13:30

1 Answers1

0
sudo service mysql start

This command starts the daemon of mysql if the script to start the daemon is in /etc/init.d But you installed mysql by xampp. So I think it is not there. Please find and invoke the daemon.

MR. ROBOT
  • 136
  • 1
  • 2
  • 11