On Mon, 27 Jan 2003 21:40:22 +0100, Shurbann Martes wrote:
>Greets,
Hi Shurbann
>I'm having some trouble connecting to MySQL DB with DBI.
>
>This is the part that giving me trouble:
>---------------------------------------------------------------------
>----------------------------------------------
>require '/usr/local/midgard/etc/config.pl
>
>$dbh = DBI->connect("dbi:mysql:$DBNAME" .
>";mysql_socket=/var/run/mysql/mysql.sock", $DBUSER, $DBPASSWD {
>PrintError => 1, RaiseError => 1, AutoCommit => 1 }} || die "can't
>connect to $DBNAME: $DBI::errstr";
You omitted the comma after the password, or that code is fake. Which
is it :-)?
--
Cheers
Ron Savage, [EMAIL PROTECTED] on 28/01/2003
http://savage.net.au/index.html