Beefy Boxes and Bandwidth Generously Provided by pair Networks
The stupid question is the question not asked
 
PerlMonks  

Re: Using multiple MySQL DB's on a Server

by Zaxo (Archbishop)
on Jan 12, 2002 at 13:49 UTC ( [id://138252]=note: print w/replies, xml ) Need Help??


in reply to Using multiple MySQL DB's on a Server

I've only seen something similar to this when cheaper programmers were got to replace me. I don't know exactly what they kept doing, but I think they had the notion that they needed to delete a db to disconnect it. That only affected one database, though.

Is something very privileged modifying database mysql? Check /var/lib/mysql (or wherever) to see if the databases are really gone or just inaccessible.

With DBI, the connect method usually specifies the database. You can change db with:

use DBI; my ($user, $pass) = ('joe', 'joe'); my $dbh = DBI::connect('dbi:mysql:database=thisun',$user,$pass,{RaiseE +rror=>1}) or die $!; # now connected to thisun $dbh->do('use thatun'); # now connected to thatun
Should be nothing there to wipe things out.

After Compline,
Zaxo

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others musing on the Monastery: (6)
As of 2024-04-16 06:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found