MySQL启动和关闭命令总结
----启动MySQL
mysqld --defaults-
file
=
/etc/my
.cnf --user=mysql &
mysqld_safe --defaults-
file
=
/etc/my
.cnf --user=mysql &
service mysql start
# systemctl start mysqld
/etc/init
.d
/mysql
start
mysqld_multi start
#多实例
net start mysql
#Windows
----关闭MySQL
mysqladmin -uroot -plhr -S
/tmp/mysql3306
.sock
shutdown
#版本对应
service mysql stop
# systemctl stop mysqld
/etc/init
.d
/mysql
stop
mysqld_multi stop
#多实例
net stop mysql
#Windows
mysql>
shutdown
;
# above MySQL 5.7.9
--杀死MySQL
killall mysqld
killall -9 mysqld
pkill -9 mysqld
相关推荐
CoderToy 2020-11-16
emmm00 2020-11-17
王艺强 2020-11-17
ribavnu 2020-11-16
bianruifeng 2020-11-16
wangshuangbao 2020-11-13
苏康申 2020-11-13
vivenwan 2020-11-13
moyekongling 2020-11-13
云中舞步 2020-11-12
要啥自行车一把梭 2020-11-12
aydh 2020-11-12
kuwoyinlehe 2020-11-12
minerk 2020-11-12
vitasfly 2020-11-12
jazywoo在路上 2020-11-11
敏敏张 2020-11-11
世樹 2020-11-11