Posted on 2008-12-21 22:01:33-08 by michir
can't connect to server
I have a mysql server running on a local Windwos machine, but I cannot connect:
$dbh = DBI->connect("dbi:mysqlPP:database=$database","$user", "$password")
results in:
Couldn't connect to /tmp/mysql.sock: at C:/Perl/site/lib/DBD/mysqlPP.pm line 109
and
$dbh = DBI->connect("dbi:mysqlPP:database=$database;host=localhost","$user", "$password")
gives:
Couldn't connect to localhost:3306/tcp: IO::Socket::INET: connect: timeout at C:/Perl/site/lib/DBD/mysqlPP.pm line 109
mysql gives for status
Connection: named pipe: mysql
UNIX socket: mysql

What's the problem?
michir
Direct Responses: Write a response
Perl Weekly newsletter
A free weekly newsletter for people who are busy to read all the blogs. click here to check it out.