FireBird34 has asked for the wisdom of the Perl Monks concerning the following question:
The example code I'm using is:DBI connect('database=test;host=xxx.xxx.x.x','username',...) failed: T +imeout of authentication at C:/Perl/site/lib/DBD/mysqlPP.pm line 109 +at database.pl line 7 Can't call method "prepare" on an undefined value at database.pl line +11.
Any suggestions?#!perl use DBI; $dsn = "dbi:mysqlPP:database=test;host=xxx.xxx.x.x"; $dbh = DBI->connect($dsn, "my_username", "my_password"); $drh = DBI->install_driver("mysqlPP"); $sth = $dbh->prepare("SELECT * FROM foo WHERE bla"); $sth->execute; $numRows = $sth->rows; $numFields = $sth->{'NUM_OF_FIELDS'}; $sth->finish;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Timeout problems (DBI)
by graff (Chancellor) on Sep 14, 2004 at 05:29 UTC | |
by FireBird34 (Pilgrim) on Sep 15, 2004 at 02:23 UTC | |
by Anonymous Monk on Feb 25, 2005 at 19:03 UTC |