First describe the problem encountered
After restarting the linux system, mysql needs to be started manually,
Execute the command: service mysqld start
After execution, an error is reported: Starting MySQL. ERROR! The server quit without updating PID file (/var/run/mysqld/mysqld.pid).
solution:
Create the mysqld.pid file in the /var/run/mysqld/ directory
1.cd /var/run/mysqld/
2.touch mysqld.pid
3.chmod -R 777 /var/run/mysqld/ (Give read, write and executable permissions to the mysqld folder and the following subfiles or folders)
4.service mysqld start
success after execution
Starting MySQL. SUCCESS!