I'm having some problem connecting to a remote MySQL server. It's on my LAN. I'm just trying to make a simple connection from any host, like such:
use DBI; my $dbh = DBI->connect( 'dbi:mysql:tickets@webhost.mydomain.org:3306', 'someuser', 'somepass', { RaiseError => 1, AutoCommit => 1 } );
I receive identical errors from several host running various version of Perl:
DBI connect('tickets@webhost.mydomain.org:3306','someuser',...) failed +: Can't connect to MySQL server on '3306' (60) at test9 line 3
I know the server is configured properly. Port 3306 is open to all hosts on my LAN. I can also access and administer the database with an ODBC GUI (using the same username and password from the script). I've seen many other posts, plus stuff on google, but I'm at a loss. Can someone help? Some extra info:
Server is MySQL 4.1.5 on BSD Client is Xp with actvestate 5.8.6, DBI DBI 1.48, DBD-mysql 2.9006
Thanks much.

In reply to Remote connection to mysql by mhearse

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.