check current database in my sql code example Example: how to show current database in mysql CopySELECT database();