MySQL Daemon failed to start error solution

MySQL Daemon failed to start error solution

MySQL Daemon failed to start error solution

A few days ago, we found that the published website could not be used for registration and logging into these activities, but accessing the pages was normal. So we started to troubleshoot the problem. First, we restarted Jenkins, but there were errors every time we restarted, so we had to restart the server. There were many services that needed to be restarted when restarting the server, one of which was MySQL.

First I tried to start the service with the command: service mysql start, but it prompted:

MySQL Daemon failed to start

When this problem first occurred, I was confused, and then I started to check and found all kinds of things. Then I saw a blog post about checking the log, so I went to this path to check the log: /var/log/mysqld.log

Open the log file and find the following prompt:

You can see the prompt: No space left on device

So use the command: df -lh to check the remaining disk space

I found that the disk space was used up, so I deleted some useless files, freed up several GB of space, and re-entered the command: service mysql start, and the startup was completed.

From this incident, I remind myself that next time I encounter a problem, the first thing I should do may not be to check Baidu or Google, but to check the log. This shows how important logs are in the process of making and using our software.

Thank you for reading, I hope it can help you, thank you for your support of this site!

You may also be interested in:
  • Mysql master-slave synchronization Last_IO_Errno:1236 error solution
  • MySQL "Every derived table must have its own alias" error solution
  • MySQL startup error solution
  • Solution to the MySQL server has gone away error

<<:  Vue two-choice tab bar switching new approach

>>:  A brief discussion on the magical slash in nginx reverse proxy

Recommend

Discussion on default margin and padding values ​​of common elements

Today we discussed the issue of what the margin v...

Detailed explanation of the difference between alt and title

These two attributes are often used, but their di...

Users need to know why

When I was in the securities company, because the ...

Detailed steps to expand LVM disk in Linux

1. Add a hard disk 2. Check the partition status:...

js to implement the snake game with comments

This article example shares the specific code of ...

How to configure the same domain name for the front and back ends of nginx

This article mainly introduces the method of conf...

Analysis of the difference between bold <b> and <strong>

All of us webmasters know that when optimizing a ...

Detailed explanation of the workbench example in mysql

MySQL Workbench - Modeling and design tool 1. Mod...

Mysql database scheduled backup script sharing

BackUpMysql.sh script #!/bin/bash PATH=/bin:/sbin...

Vue implements top left and right sliding navigation

Navigation and other things are often used in dai...

Pay attention to the use of HTML tags in web page creation

HTML has attempted to move away from presentation...

Use js to write a simple snake game

This article shares the specific code of a simple...

mysql5.7.17.msi installation graphic tutorial

mysql-5.7.17.msi installation, follow the screens...

An in-depth introduction to React refs

1. What is Refs is called Resilient File System (...

Detailed tutorial on Tomcat installation and deployment in Windows 10

Table of contents 1 Java environment configuratio...