how to use mysql to get database code example Example: how to show current database in mysql CopySELECT database();