Update Source list
Open "Terminal Window", enter "sudo apt-get update"-and "enter the root user's password"--return, you can. If you do not run the command and install MySQL directly, a "few packages cannot be downloaded, you can run the Apt-get update------" error message, causing the installation to fail.
Install MySQL
Open terminal window, enter "sudo apt-get install mysql-server mysql-client"-Enter MySQL in the "Package Setup dialog box"--Enter "Y"--and return to " Root "user's password--Enter and lose the password again--Enter, the installation is complete.
How to tell if MySQL is installed successfully
Open "Terminal Window", enter "sudo service mysql restart"-and enter-if MySQL starts successfully, the running status instructions MySQL installation is successful.
Let Apache support MySQL
Open "Terminal Window", enter "sudo apt-get install Libapache2-mod-auth-mysql"----the installation is successful, Apache will support MySQL after installing this module.
Let PHP support MySQL
Open "Terminal Window", enter "sudo apt-get install Php5-mysql"----the installation is successful, PHP will support MySQL after installing this module.
Log in to MySQL
Open terminal window, enter "Mysql-u root-p" and enter the password for the "root" user in MySQL----and the login is successful.
Forwarding Address: http://jingyan.baidu.com/article/425e69e6bbc6c7be14fc1640.html
Ubuntu Server above--install and configure MySQL "Turn"