mysql list databases
snippet in sql

mysql list databases

user2814

SHOW DATABASES;

mysql get db name

user9793

SELECT DATABASE();

how to see database in mysql command line

user9507

mysql -u user -p

how to see database in mysql command line

user3902

use DBNAME;