Installing mysql on Raspberry Pi

In this post, I will go through how to install mysql on Raspberry Pi 2. Installing mysql is much simpler than installing Apache Tomcat as it can be done via apt-get

sudo apt-get install mysql-server

During the setup, you would be prompted to set a password for your sql server. Do remember the password that you had set as you would need that later.

After the setup is complete, you may access the mysql server with the password above by typing the following.

mysql -u root -p

[Updated 25 July 2016]

I had forgotten an important step during my initial post.

It is important to do the below as well to ensure that you have the mysql-connector, without this you will run into jdbc driver error.

sudo apt-get install libmysql-java

This entry was posted in mysql, Raspberry Pi and tagged , , , , . Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s