1. Update source
sudo apt-get update
2. Install MYSQL
sudo apt-get install mysql-server
3. Enter the root password and press OK to continue the installation
4. Check whether the msql service is started and log in to mysql
5. Stop the MySQL service
sudo service mysql stop
#mysql stop/waiting
6. Start the MySQL service
sudo service mysql start
#mysql start/running, process 7061
7. Restart the MySQL service
sudo service mysql restart
#mysql stop/waiting
#mysql start/running, process 7221