There are many reasons for wanting a small MySQL database server:
So, how about if you could setup a small Arch Linux ARMv6-based hardware device which runs Percona Server for MySQL, in a space not much bigger than your mouse, with the power consumption of only a smartphone charger, fully networked, all for under $80?
Introducing the Raspberry Pi with Percona Server:

A small disclaimer first: Arch Linux is not currently on our list of supported OS’es (i.e. we do not promise to provide binaries, even though they are available from the Arch Linux AUR repository), however if you do happen to run into issues, our support service engineers are happy to provide help.
To get started, here is what you need (prices in AU$):
Total cost: ~76.5 AU$ (= ~79 US$).
Optionally, if your screen has a DVI port, you can get a HDMI Cable + DVI (male)-to-HDMI (female) connector (~$12). This enables you to connect the Raspberry Pi to your screen, and so follow what is happening on the console of the Raspberry Pi. Make sure to get the proper DVI connector for your screen as many connectors that are sold have a wrong pin layout (most standard computer screens use a DVI-D connector, not a DVI-I one).
Alternatively, if you really do end up needing to view the console of your Raspberry Pi (for example to configure an IP address in Arch Linux if you do not have a DHCP server), you can simply hook the Raspberry Pi to your TV set using the Composite RCA (PAL & NTSC) connector.
Once you have your hardware, here is how to get Percona Server for MySQL up and running:
|
1 |
$ ssh [email protected]<br>[email protected]'s password:<br>Last login: Fri Feb 22 23:27:49 2013 from percona.<...><br>[root@alarmpi ~]# |

|
1 |
[root@alarmpi ~]# passwd<br>Enter new UNIX password:<br>Retype new UNIX password:<br>passwd: password updated successfully |
|
1 |
[root@alarmpi ~]# pacman -S percona-server<br>resolving dependencies...<br>looking for inter-conflicts...<br><br>Targets (4): libaio-0.3.109-6 libmysqlclient-5.5.30-1 mysql-clients-5.5.30-1 percona-server-5.5.29_rel29.4-1<br><br>Total Download Size: 8.07 MiB<br>Total Installed Size: 96.00 MiB<br><br>Proceed with installation? [Y/n] y<br>:: Retrieving packages from extra...<br>libmysqlclient-5.5.30-1-armv6h 3.2 MiB 435K/s 00:08 [########################################################] 100%<br>mysql-clients-5.5.30-1-armv6h 736.6 KiB 395K/s 00:02 [########################################################] 100%<br>:: Retrieving packages from community...<br>libaio-0.3.109-6-armv6h 4.6 KiB 1089K/s 00:00 [########################################################] 100%<br>percona-server-5.5.29_rel29.4-1-armv6h 4.1 MiB 323K/s 00:13 [########################################################] 100%<br>(4/4) checking package integrity [########################################################] 100%<br>(4/4) loading package files [########################################################] 100%<br>(4/4) checking for file conflicts [########################################################] 100%<br>(4/4) checking available disk space [########################################################] 100%<br>(1/4) installing libmysqlclient [########################################################] 100%<br>(2/4) installing mysql-clients [########################################################] 100%<br>(3/4) installing libaio [########################################################] 100%<br>(4/4) installing percona-server [########################################################] 100%<br>Installing MySQL system tables...<br>OK<br>Filling help tables...<br>OK<br>[...more setup information, please read...] |
|
1 |
[root@alarmpi ~]# systemctl enable mysqld<br>ln -s '/usr/lib/systemd/system/mysqld.service' '/etc/systemd/system/multi-user.target.wants/mysqld.service' |
|
1 |
[root@alarmpi ~]# systemctl start mysqld |
|
1 |
[root@alarmpi ~]# /usr/bin/mysql<br>Welcome to the MySQL monitor. Commands end with ; or g.<br>[...]<br>mysql> SHOW ENGINES;<br>+--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+<br>| Engine | Support | Comment | Transactions | XA | Savepoints |<br>+--------------------+---------+----------------------------------------------------------------------------+--------------+------+------------+<br>| InnoDB | DEFAULT | Percona-XtraDB, Supports transactions, row-level locking, and foreign keys | YES | YES | YES |<br>[...]<br>mysql> SELECT "Hello World!" AS "Success!" G<br>*************************** 1. row ***************************<br>Success!: Hello World!<br>1 row in set (0.00 sec) |
Now that was easy wasn’t it?
A few other points:
Enjoy!