which query list the database on the current server code example
Example 1: mysql list databases
SHOW DATABASES;
Example 2: get database list in sql server
SELECT name FROM master.dbo.sysdatabases
SHOW DATABASES;
SELECT name FROM master.dbo.sysdatabases