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

Code Example 1

sudo apt install mysql-server

Code Example 2

sudo apt install mysql-server
sudo mysql_secure_installation utility

Code Example 3

sudo apt update
sudo apt install mysql-server
sudo mysql_secure_installation

Code Example 4

[mysqld]

Code Example 5

//follow this blog

https://www.digitalocean.com/community/tutorials/how-to-install-mysql-on-ubuntu-18-04

Learn ReactJs, React Native from akashmittal.com