Ubuntu 14.0.4 64
MySQL 5.6
Niginx 1.4.4
PHP 3.6
Completely uninstall MySQL under Ubuntu
Make a note:
1. Delete MySQL
1sudo apt-Get Autoremove--purge MySQL-Server-5.0
2sudo apt-get remove MySQL-Server
3sudo apt-get autoremove MySQL-Server
4sudo apt-get remove MySQL-Common (very important)
In fact, some of the above is redundant, it is recommended to follow the order
Clean up residual data
dpkg - L | grep ^ RC | awk ' {print $} ' | sudo xargs dpkg - P
2. Install MySQL
1 sudo apt-get install MySQL-Server
2sudo apt-get install MySQL-Client
3sudo apt-get install php5-MySQL(Installing Php5-mysql is to connect PHP with MySQL.)
Once the installation is complete, the MySQL server should start automatically. You can check whether the MySQL server is running by running the following command at the terminal prompt:
1 sudo netstat -tap | grep MySQL
When you run the command, you can see a line similar to the following:
TCP 0 0 Localhost.localdomain:mysql *:* LISTEN-
If the server does not function correctly, you can start it by using the following command:
1 sudo /etc/init.d/mysql restart
3. Enter MySQL
$mysql-uroot-p Administrator Password
Configure the Administrator password for MySQL:
1 sudo mysqladmin -u root password newpassword
This article is from the "No Boy" blog, please be sure to keep this source http://wmxzgw.blog.51cto.com/4448722/1697032
Ubuntu remove MySQL installation mysql