in reply to Re^2: connect to DBD::MYSQL
in thread connect to DBD::MYSQL
Did you try to replace localhost with 127.0.0.1?
edit (added question): Is the error really 'Unknown MYSQL server host ' localhost' <11004>', as in '<space>localhost? Could it be your code is not actually what you pasted, and the is a space before $hostname?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: connect to DBD::MYSQL
by fionbarr (Friar) on Feb 01, 2014 at 16:43 UTC | |
by karlgoethebier (Abbot) on Feb 01, 2014 at 19:10 UTC |