OK, this is going to seem trivial and I am sure it is. However so many of you have helped me in the past.
I have been using Perl 5.8.0 for doing various project for about 6 months now and the majority of these projects include doing datbase work with DBI and Oracle. I have the connection strings for this and have had no problem. The problem now is I am trying to learn DBI:MySQL and start using MySQL for my own projects. Lo and behold it is failing at the connection string. At least I think it is. I get a messagebox from Windows (Argh!! Damn you Bill!!) saying "This application failed to start because PERL56.DLL was not found. Please try reinstalling this application."
Now, I have been using 5.8.0 and do not even have 5.6 that I am aware of. I also get a message from PERL saying "Perhaps a required shared library or DLL is not installed where expected at Line 6."
Fair enough. I have tried installing DBI and MySQL driver again and again. I have read on CPAN how to call the driver but this smacks of something slightly different. I am sure the answer is quite close and just out of grasp. My mind is weak this morning from Matrix aftermath. Please if any monk has a clue or koan that leads me in correct direction I will gladly take it.
Also I know this connection string is likely wrong now as I mucked with it so many ways. This is fine, but I am including some code so you may see what I am doing. It is extremely simple compared to what I have been doing.
Please no laughing. I am including only relevant parts of the code.
use DBI; my ($dbh, $sth, $count); $dbh = DBI->connect ("DBI:mysql:database=webdb;host=localhost", "webdev"," ", {PrintError=>0, RaiseError=>1});

As usual. Thank you all for your wonderful help.

Akira

In reply to DBI, Windows and Perl56.dll error by Akira71

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.