shemp has asked for the wisdom of the Perl Monks concerning the following question:
I am having trouble connecting to the new 4.1.3 version via perl with the DBI / DBD. I have the 4.1.3 server listening on port 3307, so i tried connecting using:
DBI->connect("DBI:mysql:<dbname>;port=3307", user, pass);
But this is trying to connect to the 4.0.2 server. I know this because if i provide a user / pass combo that is valid for the 4.0.2 server, the connection succeeds, otherwise it fails.
Does the DBD read /etc/my.cnf, or does it figure things out another way, based on the port provided?
I dont know what to do here, because MySQL doesnt appear to properly read my.cnf files that are in datadir (of the mysql server variables).
Anyone else tried this before?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: DBD MySQL connect problem.
by dragonchild (Archbishop) on Aug 16, 2004 at 17:39 UTC | |
by shemp (Deacon) on Aug 16, 2004 at 17:46 UTC | |
|
Re: DBD MySQL connect problem.
by tachyon (Chancellor) on Aug 16, 2004 at 22:56 UTC |