Check out example codes for "install mysql in 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

sudo apt update
sudo apt install mysql-server
sudo mysql_secure_installation

Code Example 4

systemctl status mysql.service

Code Example 5

[mysqld]

Learn ReactJs, React Native from akashmittal.com