Ubuntu – How to install MySQL 5.7.9 to Ubuntu 14.04

MySQLUbuntuubuntu-14.04

I tried to install with these inscturctions, but installation installed version 5.5.

$ sudo apt-get install software-properties-common
$ sudo add-apt-repository -y ppa:ondrej/mysql-5.7
$ sudo apt-get update
$ sudo apt-get install mysql-server

http://tecadmin.net/install-mysql-5-on-ubuntu/

Best Answer

The PPA repository does not contain any packages for mysql 5.7: There are no deb files. Just take a look with your browser:

And on the status page it actually says:

 mysql-5.7 38 weeks ago
 Failed to build: amd64 i386 

So at least for this ppa you are out of luck ;-(

Therefore I also suggest also using the original source at mysql/Oracle:

  • See Mohit's answer for the short version.
  • For the long version: https://dev.mysql.com/doc/mysql-apt-repo-quick-guide/en/
  • Note that there is a more recent version of the config deb. Install that one: dpkg -i mysql-apt-config_0.6.0-1_all.deb
  • The site might ask you to sign on or register. It's Oracle after all...

Then the this version should show up (5.7 is GA since 5.7.9 so 5.7.10 should be fine):

apt-cache show mysql-server=5.7.10-1ubuntu14.04

If it does install via:

apt-get install mysql-server=5.7.10-1ubuntu14.04

Note that you might have to clean up other dependent packages beforehand.