Check out example codes for "ubuntu install mysql". 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 add-apt-repository 'deb [arch=amd64,arm64,ppc64el] http://ftp.utexas.edu/mariadb/repo/10.3/ubuntu bionic main'

Code Example 4

mysql -u root -p

Code Example 5

sudo apt update
sudo apt install mysql-server
sudo mysql_secure_installation

Learn ReactJs, React Native from akashmittal.com