Update At End

Yes, i am connecting from the machine that the MySQL servers are located on. I do have different sockets & pidfiles for the different servers.

So i shouldnt have to set the host param in connect() - both connections are to the local machine.

I've never seen anything about setting the socket in the DBI connect statement, is this something that can be done? What effects might it have?

If i do recompile the DBD::mysql, then will it stop working for the 4.0.2 server? I have read a bit about the changes, but whether i can get both to work at the same time is another story. Perhaps i'll need both DBD::mysql's installed, and put the new one somewhere else, and use both from my script.

Hope this helps clarify things. Any other questions, This is all im working on until its done!

Thanks much!

Update:
Ok, i trield setting the socket explicitly with:
mysql_socket=<...>
And now i get a more meaningful error:
...failed: Client does not support authentication protocol requested by server; consider upgrading MySQL client at...
So now with the socket specified, it appears that its a DBD version problem, which i should be able to take care of. (i hope)


In reply to Re^2: DBD MySQL connect problem. by shemp
in thread DBD MySQL connect problem. by shemp

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.