• info@robertoaiello.net

Install MySQL server on Raspberry Pi

Install MySQL server on Raspberry Pi

Now we’re ready to start the installation. First we need to ensure everything’s up-to-date:

sudo apt-get update && sudo apt-get upgrade

Install any out of date packages when prompted. Next we’re going to install the actual MySQL server by typing:

sudo apt-get install mysql-server --fix-missing

I tend to use the –fix-missing flag when installing mysql-server as in the past I’ve found some packages were missing. You should be prompted for a root password:

Firmware Update Raspberry Pi

Choose a secure password, and keep it safe. You will need this later to create additional users for WordPress. You will be prompted to confirm your password:

Firmware Update Raspberry Pi


Once you’ve confirmed your password, MySQL server should finish installing and the service should start.

Next, you’ve created a database and users with:

  • MySql console
  • MySql Workbench ( sudo apt-get install mysql-workbench )
  • phpMyAdmin

MySql Workbench is my preferred.



Leave a Comment