newbie: DBI mysql connection problem
From: Scott Stark (sstark_at_us.ibm.com)
Date: 04/19/04
- Next message: Dennis M. Gray: "DBD::ODBC Connection no longer working"
- Previous message: davidsanxter_at_vf.shawcable.net: "Busty Sister Giving a Handjob"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: 18 Apr 2004 16:04:44 -0700
Hi, I'm new to the Perl DBI and am having a connection problem to
MySQL. Can anyone tell me what's happening and what I'm doing wrong?
=================
use strict;
use DBI;
## variables $database, $user and $password assigned here...
my $dbh = DBI->connect("DBI:mysql:database=$database;host=localhost",
"$user", "$password",
{'RaiseError' => 1});
=================
The error I receive:
DBI->connect(database=slugger415;host=localhost) failed: Can't connect
to local
MySQL server through socket '/tmp/mysql.sock' (2) at ./mm.pl line 12
Any help would be appreciated.
Scott
- Next message: Dennis M. Gray: "DBD::ODBC Connection no longer working"
- Previous message: davidsanxter_at_vf.shawcable.net: "Busty Sister Giving a Handjob"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|