Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I want to install Mysql 5.7 on Raspberry Pi 2 with Raspbian Jessie. When I execute the command apt-get install mysql-server, it installs the version 5.5.

What I have to do?

Thanks

Update

I did every step in @Sapher answer, but didn't work.

Ign http://mirrordirector.raspbian.org jessie/contrib Translation-en
Ign http://mirrordirector.raspbian.org jessie/main Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/main Translation-en
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en_GB
Ign http://mirrordirector.raspbian.org jessie/non-free Translation-en
Ign http://mirrordirector.raspbian.org jessie/rpi Translation-en
Fetched 20.2 kB in 12s (1,596 B/s)
W: Failed to fetch http://repo.mysql.com/apt/debian/dists/jessie/InRelease
Unable to find expected entry 'mysql-apt-config/binary-armhf/Packages' in       
Release file (Wrong sources.list entry or malformed file)

E: Some index files failed to download. They have been ignored, or old ones      
used instead.
root@raspberrypi:~#  apt-get install mysql-server-5.7 -y
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-server-5.7
E: Couldn't find any package by regex 'mysql-server-5.7'
root@raspberrypi:~#
share|improve this question
2  
You will likely need to compile from source to get the bleeding edge. – Steve Robillard yesterday

It's pretty simple, no need to compile source.

MySQL official website offer a simple tool that let you choose the version of mysql server you need, MySQL APT Repository.

To install mysql-server 5.7 you must follow these steps :

Download package

First download package from MySQL website.

wget -O mysql-apt-config.deb https://dev.mysql.com/get/mysql-apt-config_0.6.0-1_all.deb

Configure mysql-server version

Launch this command to configure the mysql-server version you need :

sudo dpkg -i mysql-apt-config.deb

By default the version is set to 5.7, so you can just press Apply.

enter image description here

Install mysql-server-5.7

Finally launch these commands to install mysql-server 5.7.

sudo apt-get update sudo apt-get install mysql-server-5.7 -y

Now mysql-server is installed.

share|improve this answer
1  
That fails, I show you the result in the next comment – Galo Ciber yesterday

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.