basedir:/data/app/mysql/
方式一:原始方式
/data/app/mysql/bin/mysqld_safe &
/data/app/mysql/bin/mysqld &
方法二:利用Mysql自带shell script方式
/data/app/mysql/support-files/mysql.server start
方式三:sys-v方式
service mysqld start/restart/status
/etc/init.d/mysqld start
方式四:systemd方式
systemctl start/stop/restart/status mysqld
方式一:利用Mysql自带shell script方式
/data/app/mysql/support-files/mysql.server stop
方式二:Sys-v
service mysqld start/stop/restart/status
/etc/init.d/mysqld start/stop
方式三:systemd
systemctl start/stop/restart/status mysqld
方式四:利用客户端自带命令方式
mysqladmin -uroot -p123456 shutdown
mysql -uroot -p123456 -e “shutdown;”
注意:关闭不建议使用
ps -ef|grep 3306
kill
本文地址:https://blog.csdn.net/weixin_45320660/article/details/107160261
如对本文有疑问, 点击进行留言回复!!
powershell自动化操作AD域、Exchange邮箱系列(1)——powershell 简介
Jmeter 之BeanShell 获取 header 以及 body
网友评论