Check out example codes for "setup mysql ubuntu". It will help you in understanding the concepts better.

Code Example 1

sudo apt install mysql-server
sudo mysql_secure_installation utility

Code Example 2

sudo apt install mysql-server

Code Example 3

[mysqld]

Code Example 4

sudo /etc/init.d/mysql start
or 
systemctl start mysql.service

Learn ReactJs, React Native from akashmittal.com