Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister

Re: Connecting to remote db with DBI

by dragonchild (Archbishop)
on Mar 23, 2007 at 20:00 UTC ( #606337=note: print w/replies, xml ) Need Help??

in reply to Connecting to remote db with DBI

my $dbh = DBI->connect("DBI:mysql:database=$db;host=$host", $user, $pass, { RaiseError => 1 } ) or die ( "Couldn't connect to database: " . DBI->errstr );

My criteria for good software:
  1. Does it work?
  2. Can someone else come in, make a change, and be reasonably certain no bugs were introduced?

Replies are listed 'Best First'.
Ojiwa Janga-Kenya: Connecting to remote db with DBI
by Anonymous Monk on May 14, 2007 at 11:39 UTC
    Hi Perl forks Your problem is inside the DBI. Your DBD is corrupted or incomplete. Install perl DBD for mysql. I assure you this works.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (9)
As of 2019-12-06 16:33 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (156 votes). Check out past polls.