Possible Duplicate:
MySQL: determine which database is selected?
I’m trying to debug some problems with a project from someone else. It looks like I get data from an other database, but I’m connected to the right one. So I thought, let’s look at what database I’m connected to.
How can I look at what database I’m connected at runtime?
Run the following query: