#When starting mysql during the above installation
/usr/local/mysql/bin/mysqld_safe –user=mysql &
#If you copy mysql.server to the /sbin directory, you can also start it like this
Mysql.server start
#If After performing Cp /mysql package directory/support-files/mysql.server /etc/init.d/mysqld, you can start it like this
Service mysqld start
#If you want to start mysql automatically after booting, you can start it like this
Chkconfig –add mysqld
The above three methods are almost the same. I personally feel that mysql.servre also calls mysqld_safe to start mysql. Generally, I use root permissions to start or stop.
The above is the summary of MYSQL learning (2): the startup and shutdown of MYSQL. For more related content, please pay attention to the PHP Chinese website (www.php.cn)!