在ubuntu系統中使用service命令啟動mysql
1.啟動mysql
sudo service mysql start
2.停止mysql
sudo service mysql stop
3.重啟mysql
sudo service mysql restart