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

Code Example 1

sudo apt install mysql-server

Code Example 2

mysql -u root -p

Code Example 3

sudo apt install mysql-server
sudo mysql_secure_installation utility

Learn ReactJs, React Native from akashmittal.com