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

Code Example 1

sudo apt update
sudo apt install mysql-server
sudo mysql_secure_installation

Code Example 2

[mysqld]

Code Example 3

sudo apt install mysql-server

Learn ReactJs, React Native from akashmittal.com