You haven't mentioned whether you have shell access on that server. If you did, you might be able to try out the mysql command on a command line, confirm that your connection parameters work that way at least, and generally poke around in your database account to make sure everything is kosher.

I assume that your connection string does not actually include the html tags for "italic font" -- I think everyone here who is looking at your code is assuming that you put the  <i> ... </i> around "dbname", "uname" and "pword" just for the sake of posting, to clarify that you are (wisely) not showing us the real values that you actually use in those slots to make the connection.

But just to be sure... if those "i" tags really are there in the script you're trying to run (and/or if that script isn't using the strings provided by the ISP for those slots), then that is surely the problem.


In reply to Re^3: dbh connections: stumped! by graff
in thread dbh connections: stumped! by kevin

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.