How can I install MySQL 5.7.9 to Ubuntu 14.04?
First visit https://dev.mysql.com/downloads/repo/apt/ to find the most recent version of the package. The below version will be out of date by the time you read this.
Please run below command:
package=mysql-apt-config_0.8.11-1_all.deb
wget http://dev.mysql.com/get/$package
sudo dpkg -i $package
sudo apt-get update
sudo apt-get install mysql-server
Originally you needed to install mysql-server-5.7
but with the more recent package, it is just mysql-server
The PPA repository does not contain any packages for mysql 5.7: There are no deb files. Just take a look with your browser:
- http://ppa.launchpad.net/ondrej/mysql-5.7/ubuntu/pool/main/m/mysql-5.7/
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.
Use mohit's answer, but refer to https://dev.mysql.com/downloads/repo/apt/ for the current mysql-apt-config. Click "Download" at the bottom. Then copy the link from "No thanks, just start my download." at the bottom