If you are on windows, and are using ActiveState perl, and have ppm, then this is much easier. you simply use the command :
C:\WINDOWS>ppm install DBD::MySql
Now, DBD::MySql does require DBI, so you may also have to do ppm install DBI first. I did this on my pc, with no prior mysql installs, and it looked like this :
C:\WINDOWS>ppm install DBD::MySql
Installing package 'DBD-MySql'...
Bytes transferred: 126147
Installing C:\Perl\site\lib\auto\DBD\mysql\mysql.bs
Installing C:\Perl\site\lib\auto\DBD\mysql\mysql.dll
Installing C:\Perl\site\lib\auto\DBD\mysql\mysql.exp
Installing C:\Perl\site\lib\auto\DBD\mysql\mysql.lib
Installing C:\Perl\html\site\lib\Mysql.html
Installing C:\Perl\html\site\lib\Bundle\DBD\mysql.html
Installing C:\Perl\html\site\lib\DBD\mysql.html
Installing C:\Perl\site\lib\Mysql.pm
Installing C:\Perl\site\lib\Mysql\Statement.pm
Installing C:\Perl\site\lib\DBD\mysql.pm
Installing C:\Perl\site\lib\Bundle\DBD\mysql.pm
Installing C:\Perl\bin\dbimon
Installing C:\Perl\bin\dbimon.bat
Writing C:\Perl\site\lib\auto\DBD\Mysql\.packlist
C:\WINDOWS>
And, Ta-Da, from the next snippet you can see the library loads fine :
C:\WINDOWS>perl -MDBD::MySql -e 1
C:\WINDOWS>
from the frivolous to the serious
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|