I am attempting to install the perl module DBD::MariaDB or the module DBD::mysql. I am using strawberry perl version 40. It is supposed to have these modules installed out of the box, but these modules are not present. I checked this with instmodsh.bat and I have also tried to access a database. When I try to access the database, it states that the module is not installed and provides a number of options but mysql and MariaDB are not present. I have tried to install the module using CPAN and I get the message that the installer cannot find "mysql.h". I checked for this file and it is present in the Ampss\mysql\include directory. I have tried adding this to the system path variable, using the commandline switch --cflags=-IC:\Ampss\mysql\include. I have tried creating the mysql_config file mentioned in the install documentation, but the installer was never able to find the file. Any suggestions on what I am doing wrong or how to get around this problem?


In reply to MySQL/MariaDB DBD install problem by ABayko

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.