Tag Archives: daemon

The ‘MySQL daemon failed to start’ solution appears

==================================================================

Ten million methods, backup the first!

==================================================================
running: Service mysqld start the following prompt will always appear when restarting the database:
MySQL daemon failed to start.
starting mysqld: [failed]
prompt. If you directly enter MySQL – root – P to log in, you will get an error [MySQL] error 2002 (HY000): can’t connect to local MySQL server through socket ‘/ var/lib/MySQL/MySQL. Socket’ (2). In short, MySQL server always fails to start. There are many solutions available on the Internet, which have no effect. In the end, the solution is as follows

RM – RF/var/lib/MySQL/* involves deleting and renaming the backup as follows MV/var/lib/MySQL// var/lib/MySQL_ Bak/ RM/var/lock/subsys/mysqld involves deleting and renaming the backup as follows MV/var/lock/subsys/mysqld/var/lock/subsys/mysqld_ bakkillall mysqld

Rerun: Service mysqld start
found to work normally

==================================================================

Note: when it comes to deletion, we should carefully consider the operation!

==================================================================