Install the MySQL-server and MySQLdb modules in ubuntu14.04, and ubuntu14.04mysql
Install Ubuntu14.04 on a VM
1. Check that the IP address can be connected to the Internet.
Ii. sudo apt-get install aptitude
Note: aptitude features similar to apt-get. You prefer to use aptitude to install and uninstall the software. For specific differences, please be independent.
There is an episode when using apt-get. The newly installed system directly enters sudo apt-get installPackagenameGenerally, the following error occurs: unable to locate.Packagename
In this case, you only need to enter sudo apt-get update to wait for the update to complete.
3. sudo aptitude show mysql (query the MySQL installation package)
Select MySQL-server-5.6 installation (sudo aptitude install mysql-server-5.6)
Sudo aptitude install python-mysqldb (install MySQL module)