温馨提示×

centos7.4怎么开启mysql服务

九三
190
2021-01-18 13:29:03
栏目: 云计算
亿速云mysql数据库,读写分离,安全稳定,弹性扩容,低至0.3元/天!! 点击查看>>

centos7.4怎么开启mysql服务

在centos7.4中开启mysql服务的方法

1.启动命令

[root@xufeng Desktop]# service mysqld start

Redirecting to /bin/systemctl start mysqld.service

2.关闭命令

[root@xufeng ~]# service mysqld stop

Redirecting to /bin/systemctl stop mysqld.service

3.重启命令

[root@xufeng ~]# service mysqld restart

Redirecting to /bin/systemctl restart mysqld.service

亿速云「云数据库 MySQL」免部署即开即用,比自行安装部署数据库高出1倍以上的性能,双节点冗余防止单节点故障,数据自动定期备份随时恢复。点击查看>>

推荐阅读:centos mysql8服务怎么开启

0