Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: Problems with MySQL - "No Database Selected"

by chromatic (Archbishop)
on May 09, 2002 at 21:09 UTC ( #165518=note: print w/ replies, xml ) Need Help??


in reply to Problems with MySQL - "No Database Selected"

I believe $database should be "database=default".

(As this deals directly with the syntax the MySQL DBD expects, I'd consider it highly Perl related.)


Comment on Re: Problems with MySQL - "No Database Selected"
Download Code
Re: Re: Problems with MySQL - "No Database Selected"
by ninja-joe (Monk) on May 09, 2002 at 21:14 UTC
    When I change that I get this:
    DBI::db=HASH(0x823ad6c)->disconnect invalidates 1 active statement han +dle (either destroy statement handles or call finish on them before d +isconnecting) at index.cgi line 24.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://165518]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (12)
As of 2015-07-02 11:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (34 votes), past polls