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
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
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:
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:
dpkg -i mysql-apt-config_0.6.0-1_all.deb
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