First things first: a)locate mysql's configuration file my.cnf normally under /etc , make sure that the lineskip_networking does not appear in it ! b)comment it out if it's in the file. c) Restart mysql d)telnet to port 3306 manually and see if the server answers the connection.
if all of the above works then you are go ! On 27/9/2010 9:33 ??, Eric Robertson wrote: > > On Mon, Sep 27, 2010 at 3:06 AM, Eric Robertson > <eric...@blueyonder.co.uk <mailto:eric...@blueyonder.co.uk>> wrote: > > I'm using a MacBook Pro running OS X 10.6.4 and I installed > ActiveState Perl - I'm using version 5.8.8 at the moment. I did this > to make it easier to install some of the modules I wanted but I'm not > sure I wouldn't have been better just to use the Perl that comes with > the Mac OS! > > The problem I have is that I can't connect to a MySQL database that I > have on the MacBook, set up using MAMP PRO. When I was running > everything under Windows I used to have the DBD::mysql driver > installed but this doesn't seem to be available for this build so I'm > using DBD::mysqlPP which I assume should work in the same way. However > the connection string fails when I try to connect using the following: > > $dsn = "DBI:mysqlPP:host=localhost:database=$database"; >
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ActivePerl mailing list ActivePerl@listserv.ActiveState.com To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs