Cannot get a connect to Mysql using DBI
I get these error messages
DBI->connect([EMAIL PROTECTED]:3306) failed: Can't connect to MySQL
server
on '3306' (22) at builddb.pl line 5
DBI->connect(products) failed: Can't connect to local MySQL server through
sock
t '/tmp/mysql.sock' (111) at builddb.pl line 5
Arg. recompiled it, I've tried to install useing RPM's I've tried using
perl -MCPAN -e shell and ` install Bundle::DBD:mysql '
The code I'm using to connect is.
$dbhandle = DBI->connect("dbi:mysql:products", "", "") || &error("\nCouldn't
co
nect to DB.\n\n ".$?);
I've modified it Like this
$dbhandle = DBI->connect("dbi:mysql:products\@localhost:3306", "thrawn",
"rootroot") || &error("\nCouldn't co
nect to DB.\n\n ".$?);
$dbhandle = DBI->connect("dbi:mysql:products\@192.168.1.170:3306", "thrawn",
"rootroot") || &error("\nCouldn't co
nect to DB.\n\n ".$?);
NOTHING WORKS !!!! ARG !!!!! any one know what I'm doing wrong. Been working
on this all day.
I'm going to Hunt down some Morphean, BRB.
Derrick,