Home > Database > Mysql Tutorial > body text

MYSQL learning summary (2): MYSQL startup and shutdown

黄舟
Release: 2016-12-23 17:10:22
Original
1175 people have browsed it

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



Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!