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

Code Example 1

SHOW DATABASES;

Code Example 2

mysql -u user -p

Code Example 3

use DBNAME;

Code Example 4

SELECT DATABASE();

Learn ReactJs, React Native from akashmittal.com