How can I tell which DB a console is connected to.

I have a server with multiple databases that I am switching between (Production and test).   I don't see any indication to tell me which my console is connected to.  Is there a setting I am missing?

 

Thanks

Bruce

 

0
4 comments

And, of course, once I post the question, I found the "showQueryConsoleToolbar".  From a UI design point of view (my point of view of course!), this is NOT the place for this option.  Everything else on this menu pertains to the Database Explorer on the left.

 

0

Hi below given query will help you to find 

ActiveRecord::Base.connection.current_database

-1

That throws an error

 

0

@bruce it should be database selection drop down that shows you database you're connected to.

Could you describe the way you've opened your consoles?

0

Please sign in to leave a comment.