启动mysql
systemctl start mysqld.service
停止mysql
systemctl stop mysqld.service
重启mysql
systemctl restart mysqld.service
查看当前状态
systemctl status mysqld.service
设置开机自启
systemctl enable mysqld.service
停止开机自启
systemctl disable mysqld.service
本文共 288 字,大约阅读时间需要 1 分钟。
启动mysql
systemctl start mysqld.service
停止mysql
systemctl stop mysqld.service
重启mysql
systemctl restart mysqld.service
查看当前状态
systemctl status mysqld.service
设置开机自启
systemctl enable mysqld.service
停止开机自启
systemctl disable mysqld.service
转载于:https://www.cnblogs.com/vitasyuan/p/8645599.html