Re: DBI / DBD / MySQL installation problem



Hi Andersson,

On 6/15/05, Jonas Andersson <jonas.andersson@xxxxxxxxxxxxxx> wrote:
> Hi,
>
> (sorry for fairly lengthy post)
>
> I used to run Red Hat 9, and had a perfect relationship with Perl, DBI,
> and MySQL. However, after upgrading to Fedora Core 4, I am no longer
> able to connect to MySQL from Perl via DBI.

I faced the same conflict with the perl, in FC3,

Try usinf use perl5.8.0 just above use DBI

Should work

Best
Vasundhar
---------------------------
> #!/usr/bin/perl -w
> use strict;
use perl5.8.0;
> use DBI;
>
> my $dbh =
> DBI->connect("DBI:mysql:database=MyOwnDatabase;host=localhost",
> "MyUserName", "MySpecialPassword",
> {'RaiseError' => 1});
>
.



Relevant Pages

  • Re: getting DBI and ODBC to work with PERL and MYSQL data source
    ... and installed DBI and DBD::ODBC perl modules. ... experience issuing a SQL query through PERL to Mysql.. ...
    (comp.lang.perl.misc)
  • DBI / DBD / MySQL installation problem
    ... I used to run Red Hat 9, and had a perfect relationship with Perl, DBI, ... able to connect to MySQL from Perl via DBI. ... Running install for module Mysql ...
    (perl.dbi.users)
  • Re: Need help with Perl and MySQL database data load
    ... You are telling Perl that you're creating a package named ... > 'MySQL' with this line. ... I get the error message "Can't locate object method "connect" ... When I put that line, use DBI;, back in I then get an authentication ...
    (comp.lang.perl.misc)
  • Problem of DBI build
    ... I installed Oracle Application Server 4.0.8.2 included perl module. ... I need to installe DBI and DBD::Oracle module. ... You can install them any time after installing the DBI. ... line 318: error 1705: Function prototypes are an ANSI feature. ...
    (perl.dbi.users)
  • Problem of DBI build
    ... I installed Oracle Application Server 4.0.8.2 included perl module. ... I need to installe DBI and DBD::Oracle module. ... You can install them any time after installing the DBI. ... line 318: error 1705: Function prototypes are an ANSI feature. ...
    (perl.dbi.users)