6

I cannot find any guides on how to install MySQL on a Raspberry Pi running Occidentalis 0.2; Occidentalis is a Raspbian derivative.

I cannot use apt-get to install it even after running apt-get update. I guess I'll need to compile MySQL myself. What is the experience with doing this?

This is what I tried:

pi@raspberrypi ~ $ sudo apt-get install mysql
Reading package lists... Done
Building dependency tree
Reading state information... Done
E: Unable to locate package mysql
Peter Mortensen
  • 2,004
  • 2
  • 15
  • 18
mkoryak
  • 243
  • 2
  • 8

2 Answers2

12

Easy answer:

sudo apt-get install mysql-server

You just forgot the -server string!!

Good luck!

Jivings
  • 22,656
  • 11
  • 94
  • 140
Christian
  • 1,230
  • 1
  • 13
  • 25
2

Occidentalis, Raspbian and Debian divide the MySQL functionality into 2 packages: mysql-server and mysql-client. They can be installed using apt-get install, which should be run as root.

Alex Chamberlain
  • 15,638
  • 15
  • 69
  • 113