Raspberry Pi – as a web server Part 3 (My SQL)

If you are here looking to install a MySQL server on your Raspberry Pi, I’m going to assume that you have PHP, Apache and (optionally) SSH access already set up, if you don’t you can follow these tutorials first:

Install Apache

Install PHP

Install MYSQL

Install PHP My Admin

As always, we start with a new terminal and type:

sudo bash

Next we get MySQL and install it (you will be asked to enter a root password)

apt-get install mysql-server mysql-client php5-mysql


as before we need a reboot:


the service should autostart when the Raspberry Pi has rebooted.

That’s it, your MySQL server is now installed and running!

My next article will be installing PHP My Admin, which will help with administering My SQL




Leave a comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.