Check out example codes for "mysql command line see all databases". It will help you in understanding the concepts better.

Code Example 1

mysql -u user -p

Code Example 2

use DBNAME;

Code Example 3

SHOW DATABASES;

Learn ReactJs, React Native from akashmittal.com