MySQl 5.7.26 学习笔记-6-MySQL的启动停止

日常启停

1./etc/init.d/mysqld start/stop

mysql.server start   ---> mysqld_safe ---> mysqld

2.systemctl start/stop mysqld

mysql.server  --->mysqld

需要依赖于 /etc/my.cnf

MySQl 5.7.26 学习笔记-6-MySQL的启动停止

维护性任务

1.mysqld_safe --skip-grant-tables --skip-networking &

将需要的参数临时加到命令行,也会读取/etc/my.cnf内容。但是如果冲突,会以命令行参数为准

2.mysqld_safe &  ---> 也是启动数据库