• 查看MYSQL服务状态
systemctl start mysqld
service mysqld status
  • 启动MYSQL
service mysqld start
  • 关闭mysql
service mysqld stop
  • 开机启动
systemctl enable mysqld
systemctl daemon-reload