how to lists the databases in the server code example
Example 1: show databases in sql server
SELECT * FROM SYS.DATABASES
Example 2: how to see database in mysql command line
use DBNAME;
SELECT * FROM SYS.DATABASES
use DBNAME;