启动/停止/重启可参考: 详解Ubuntu Server下启动/停止/重启MySQL数据库的三种方式(ubuntu 16.04) 查看服务器状态可使用:sudo service mysql status