mysql to show databases code example Example 1: how to show current database in mysql CopySELECT database(); Example 2: show databse mysql SHOW DATABASES;