Check out example codes for "login to database mysql terminal". It will help you in understanding the concepts better.

Code Example 1

mysql -u USERNAME -p

Code Example 2

use DBNAME;

Code Example 3

show databases;

Learn ReactJs, React Native from akashmittal.com