MySQL Forums
Forum List  »  Perl

Re: Retrieving the default database name
Posted by: M. G.
Date: October 22, 2012 10:52AM

Thank you Peter!

I guess I should have been more specific. The most basic "default" database name might reside in one ini file or another. But it is not what I am looking for.

I am using MySQL from a (Perl) application. There I am using many subroutines and packages that set the various attributes passed to the DBI "connect" method. Also, I later switch databases based on a user's input by executing a "USE 'DB_name'" SQL statement.

What I am after is a way to debug my application and/or log a particular run to verify what was eventually selected as the "default database name" at a given juncture. A bug there might be devastating....

Well, I guess I'll have to find another way. Or is there a way after all?


Options: ReplyQuote

Written By
October 22, 2012 09:53AM
Re: Retrieving the default database name
October 22, 2012 10:52AM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.