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

MYSQL learning summary (2): MYSQL startup and shutdown

黄舟
Release: 2016-12-23 17:10:22
Original
1277 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
Latest Issues
MySQL stops process
From 1970-01-01 08:00:00
0
0
0
Error when installing mysql on linux
From 1970-01-01 08:00:00
0
0
0
phpstudy cannot start mysql?
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template