环境:linux
操作:启动 关闭 查看mysql
设置开机自启:
systemctl enable mysqld.service
启动服务:
systemctl start mysqld.service 或 service mysqld start
关闭服务:
systemctl shutdown mysql.service 或 service mysqld shutdown
查看状态:
systemctl status mysql.service 或 service mysqld status