SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Member
    Join Date
    Sep 2002
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Question Perl, DBI, DBD-mysql

    I'm having trouble connecting to MySQL from Perl. Here is the error message:

    PHP Code:
    Undefined subroutine &DBD::mysql::db::_login called at /usr/local/lib/perl5/site_perl/5.8.0/i686-linux/DBD/mysql.pm line 131.
    (in cleanupDriver has not implemented DESTROY for DBI::db=HASH(0x829ea20at -e line 0 
    MySQL works fine from PHP, I've tested username & password & database-compination and it's all fine. Perl is version 5.8.0, MySQL is 3.23.43, I have mysql-devel, -client and -server installed, and so is zlib. I've installed DBI via CPAN with no problems, but DBD::mysql did give me lots of errors in 'make test' (Failed 17/18 test scripts, 5.56% okay. 724/727 subtests failed, 0.41% okay) but I 'make install'ed it anyway.

    I've searched the web and found similar reports of error on an older version of Perl (5.003 or so if I remember correctly) so when I first got these errors on 5.6.0 I upgraded to 5.8.0 but that hasn't helped. Any help or comment is very very very very very much appriciated :)

  2. #2
    SitePoint Member
    Join Date
    Jan 2001
    Posts
    5
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Get the latest version of DBD-mysql.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •