list all database code example
Example 1: get database list in sql server
SELECT name FROM master.dbo.sysdatabases
Example 2: how to see database in mysql command line
SHOW DATABASES;
Example 3: how to see database in mysql command line
mysql -u user -p