Home  >  Article  >  Database  >  MYSQL learning summary (2): MYSQL startup and shutdown

MYSQL learning summary (2): MYSQL startup and shutdown

黄舟
黄舟Original
2016-12-23 17:10:221203browse

#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)!



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn