> Hey everyone!
> I'm hoping someone can help me out with this... I'm trying to write a
> perl/cgi to connect to mysql.  This is my code:
> 
> #!/usr/bin/perl
> print "Content-type: text/html\n\n";
> 
> use DBI();
> connect(DBD::mysql,"usertest");
> 
> read(STDIN, $buffer, $ENV{'CONTENT_LENGTH'});
> @pairs = split(/&/, $buffer);
> foreach $pair (@pairs) {
>         ($name, $value) = split(/=/, $pair);
>         $value =~ tr/+/ /;
>         $value =~ s/%([a-fA-F0-9][a-fA-F0-9])/pack("C",hex($1))/eg;
>         $HW{$name} = $value;
> }
> 
> 
> $dbh = DBI->connect("DBI:mysql:newdb",usertest,password);
> 
> 
> This is my error message:
> 
> Content-type: text/html
> 
> install_driver(mysql) failed: Can't locate object method "bootstrap" via
> package
>  "IO::Handle" at /usr/lib/perl5/site_perl/DBD/mysql.pm line 14.
> 
>  at ./sli.cgi line 21
> 
> I would appreciate any help anyone could offer.
> 
> Thanks!
> Heather
> 
> 


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to