启动方式
systemctl start mysqld ----- > mysql. server ---->mysqld_safe ---->mysqld
启动顺序。
关闭种类
第一种启动方式
[root@host01 ~]# systemctl stop mysqld
第二种
[root@host01 ~]# service mysqld stop
Shutting down MySQL.. SUCCESS!
第三种
[root@host01 ~]# /etc/init.d/mysqld stop
Shutting down MySQL.. SUCCESS!
第四种
[root@host01 ~]# mysqladmin -u root -p shutdown
Enter password:
第五种
[root@host01 ~]# mysql -u root -p -e 'shutdown'
Enter password: