Re: Problem Connecting to MySQL Database
Angelos Karageorgiou <[email protected]>
| Newsgroups | gmane.comp.lang.perl.active-perl |
|---|---|
| Message-ID | <[email protected]> |
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 > <[email protected] <mailto:[email protected]>> 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"; > _______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
signature.asc
(application/pgp-signature, 552 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJMoYGmAAoJEAa9bq/jDq5leJAH/iyKqgGWNV+NsRdTkMtm2vx/ 3Ia86N42+B7h6OpH1lu/SMgKH1a0o4pO98sY6dFmFKdD61Tdhei1mofDz7nNXnFW CME3bjD4nzHSHejZTWefCfLfrSZr6ZRbR2paR3lFN/DuCvydtgaMKxh2jZ4Kg7Ee Q1iHuDLf5X3OvbYGDoxLtralAFOEWDzN9p6s3jWhQbB8YppfNBjRsNZasZN5r5CZ 0dlFXcoDU3yKlTb0gC7q3guT935EzQA/MgLN1ur/cvEhvPlU8Hf1EqpCrzV+BNh0 y9h0CLKuegsdgyajOSg009SR3AP2NZweUem9IrNgLU65kaKbYaNT85Of/moYgYc= =yyhw -----END PGP SIGNATURE-----