Preface a sentence, if in Ubuntu is only the latest MySQL source by default, that is, if you use "sudo apt-get install mysql-server mysql-client"MySQL 5.7 will be installed, but what if we need to install a different version of the database?" 1. Installation actually understand the installation method is very simple, the basic command is as follows:
apt-get install software-properties-commonsudo add'deb http://archive.ubuntu.com/ Ubuntu Trusty universe'sudo apt-get updatesudo apt install mysql-server- 5.6sudo apt install mysql-client-5.6
Note: The middle will be prompted, enter the MySQL password
2. Test enter the following command: Mysql-uroot-p Next you will be prompted to enter the password, enter the correct password, you can enter. Reference post: http://blog.csdn.net/keeyce/article/details/52217730
Configuration of the Java Development environment under Linux (Ubuntu 16) (iii)------MySQL configuration