在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