mysql的几种启动、关闭方式
#1.脚本的方式启动关闭
[root@iyoume03 ~]# /etc/init.d/mysql start
Starting MySQL.. SUCCESS!
[root@iyoume03 ~]# /etc/init.d/mysql stop
Shutting down MySQL.. SUCCESS!
#2.服务的方式启动关闭
[root@iyoume03 ~]# service mysql start
Starting MySQL.. SUCCESS!
[root@iyoume03 ~]# service mysql stop
Shutting down MySQL.. SUCCESS!
#3.mysqladmin的方式启动关闭
[root@iyoume03 ~]# mysqladmin -uroot -p123456 status
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
Uptime: 227 Threads: 1 Questions: 2 Slow queries: 0 Opens: 108 Flush tables: 1 Open tables: 101 Queries per second avg: 0.008
[root@iyoume03 ~]# mysqladmin -uroot -p123456 shutdown
mysqladmin: [Warning] Using a password on the command line interface can be insecure.
创建时间:2022-06-09 11:37
넶浏览量:0