==================================================================
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 s> MV/var/lib/MySQL// var/lib/MySQL_ Bak/ RM/var/lock/subsys/mysqld involves deleting and renaming the backup as follows s> 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!
==================================================================
Similar Posts:
- Solution to the error of MySQL: unrecognized service (CentOS)
- How to Solve MYSQL Startup Error: “MySQL Daemon failed to start”
- [Solved] MySQL Restart Error: Another MySQL daemon already running with the same UNIX socket
- An error is reported in the dockerfie image, and the status is acitvating (start)
- MySQL [ERROR] Table ‘mysql.user’ doesn’t exist
- MYSQL Startup Error: [ERROR] Aria engine is not enabled or did not start. The Aria engine must be enabled to
- How to Backup MySQL database regularly
- MySQL installation error — failed to find valid data directory
- MySQL he server quit without updating PID file [How to Solve]
- [Solved] ERROR 2002 (HY000): Can’t connect to local MySQL server through socket ‘/var/run/mysqld/mysqld.sock’