how to connect raspberry pi to mysql database code example Example: install mysql raspberry pi sudo apt install mariadb-server sudo mysql_secure_installation