5

I'm trying to install MySQL 5.6 in Raspbian 7 (wheezy).

I've added the repo:

wget http://dev.mysql.com/get/mysql-apt-config_0.3.7-1debian7_all.deb
sudo dpkg -i mysql-apt-config_0.3.7-1debian7_all.deb 
sudo apt-get update

When I type in sudo apt-get install mysql-server-5.6:

Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql-server-5.6
E: Couldn't find any package by regex 'mysql-server-5.6'

Only mysql-server-5.1 & mysql-server-5.5 are available.

Where have I gone wrong?

goldilocks
  • 60,325
  • 17
  • 117
  • 234
cheezburger
  • 53
  • 1
  • 4

2 Answers2

5

Checking on Raspbian 8 (jessie):

> apt-cache search mysql-server
mysql-server - MySQL database server (metapackage depending on the latest version)
mysql-server-5.1 - MySQL database server binaries and system database setup
mysql-server-5.5 - MySQL database server binaries and system database setup
mysql-server-core-5.1 - MySQL database server binaries
mysql-server-core-5.5 - MySQL database server binaries

This is the same as wheezy (actually that's an upgraded to jessie system; if you have a new from scratch jessie 5.1 will not be there). So in fact 5.6 is not available. Note that Raspbian binaries are compiled for the ARMv6 platform -- you cannot use just any Debian package. The current Raspbian (jessie) is parallel to the current Debian anyway.

But

5.6 is available for "stretch", the current Debian testing branch, and as Peter Green notes in a comment, it has at least been built for Raspbian.

Along the lines of the methodology described here, you can try and install a stretch package on a jessie system. I.e., add:

deb http://archive.raspbian.org/raspbian/ stretch main

To /etc/apt/sources.list. Then run apt-get update. Finally:

apt-get install mysql-server-5.6

This requires various stretch dependencies and a few upgrades but is worth trying.


It also is in theory possible to upgrade the whole system now (from jessie) if you change jessie to stretch in /etc/apt/sources.list, run apt-get update and then (this is the edge of the cliff...) apt-get dist-upgrade (which will probably take some time), but beware this has probably not been tested much by the masses yet.


If you have a Pi 2, 5.6 is available for pure ARMv7 distros -- primarily Ubuntu (it is probably an alternative in 14.04 LTS). The default on Fedora 21 ARM is 5.6.26.

goldilocks
  • 60,325
  • 17
  • 117
  • 234
2

It appears that the repository in question only supports i386 and amd64.

Peter Green
  • 6,595
  • 1
  • 21
  • 26