Sunday, January 5, 2020

How to Install MySQL/MariaDB in Raspberry Pi

In this post I will show you how to Install MySQL/MariaDB in Raspberry Pi
Previously I had shown..
Before Install Mysql, update Raspberry Pi OS using below commands

sudo apt-get update
sudo apt-get upgrade

Now Install MySQL using below command


sudo apt-get install mariadb-server

Ones MySQL is installed, execute below command for configuration

sudo mysql_secure_installation

and follow the instructions based on your requirements. After configuration is completed, login to MySQL using below command.

sudo mysql -u root -p


No comments:

Post a Comment