After mysql is installed in Linux, mysql is generally added to the Automatic startup List by adding usrlocal to the etcrc. local file.
After mysql is installed in Linux, mysql is generally added to the Automatic startup List by adding/usr/local to the/etc/rc. local file.
After mysql is installed in Linux, mysql is generally added to the Automatic startup list:
Add/usr/local/mysql/bin/mysqld_safe -- user = mysql &
This usually brings a lot of convenience to users, but my Linux system suddenly got stuck when I started mysql service one day, so I found some solutions on the Internet, as described below:
1. generally, the ssh service is started before the mysql service is started. Therefore, you can use putty and other client tools to log on to the Linux system and modify/etc/rc. local file (or use the chkconfig -- del mysqld command) to delete mysql-related services and restart them.
2. After logging on to the Linux system, run the top | grep mysql command to search mysql-related services and kill the corresponding process number so that the Linux system can continue to start.