first update os
sudo apt-get update
and install mysql
sudo apt-get install mysql-server
and create ssh user
adduser username
and add sudo this user
usermod -aG sudo username
for connect this user with ssh
Edit (as root) /etc/ssh/sshd_config. Append the following to it:
PermitRootLogin no
and restart sshd service
and connect to board by ssh
create mysql user
CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
and create database
create database <database_name> character set UTF8 collate utf8_bin
CREATE DATABASE mydatabase CHARACTER SET utf8 COLLATE utf8_general_ci;