Check out example codes for "what is default mysql database password in linux". It will help you in understanding the concepts better.

Code Example 1

$ sudo apt install mysql-server
$ sudo cat /etc/mysql/debian.cnf

Learn ReactJs, React Native from akashmittal.com