develooper Front page | perl.beginners | Postings from March 2002

Re: connecting to mysql database ?

Thread Previous | Thread Next
From:
Brian Volk
Date:
March 5, 2002 11:01
Subject:
Re: connecting to mysql database ?
Message ID:
3C851637.4030603@bvolk.com
Thank you.   I actually got it working... Another subscriber form this 
list show me that I didn't have the DBD::mysql installed correctly.  

Thank you.

Brian Volk

William.Ampeh@frb.gov wrote:

>my $dbh = DBI->connect ( "DBD:mysql :database=perl
>:host=localhost",$username,$password)
>                          ^^^
>                           |
>        should read     DBI::mysql
>
>
>
>The syntax is:
>
>$dbh = DBI->connect(DBI:driver_name:database=database_name, username,
>password)
>
>
>The default host is localhost, so host=localhost is redundant.
>
>
>__________________
>
>William Ampeh (x3939)
>Federal Reserve Board
>
>



Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About