DBI
/DBD
Interface
To install the MySQL DBD
module with ActiveState Perl on
Windows, you should do the following:
set HTTP_proxy=my.proxy.com:3128
C:\> c:\perl\bin\ppm.pl
DBI
:
ppm> install DBI
install \ ftp://ftp.de.uu.net/pub/CPAN/authors/id/JWIED/DBD-mysql-1.2212.x86.ppd
The above should work at least with ActiveState Perl Version 5.6.
If you can't get the above to work, you should instead install the
MyODBC
driver and connect to MySQL server through
ODBC:
use DBI; $dbh= DBI->connect("DBI:ODBC:$dsn","$user","$password") || die "Got error $DBI::errstr when connecting to $dsn\n";
Posted by [name withheld] on Thursday January 23 2003, @5:59am | [Delete] [Edit] |
The new version of ActivePerl ActivePerl-5.8.0.804-MSWin32-x86 requires you to recompile the DBD::mysql driver manually. The older PPM file on CPAN, WILL NOT WORK.
Posted by [name withheld] on Wednesday January 29 2003, @11:17am | [Delete] [Edit] |
I never could resolve this problem in Perl 5.8. I have read around the internet that Perl 5.6 and Perl 5.8 are binary incompatible so libraries must be recompiled. However, every 5.8 version of DBD I could find did not work so I had to go back to Perl 5.6 and follow the instructions above to use DBD again.
Posted by [name withheld] on Friday January 31 2003, @5:29am | [Delete] [Edit] |
http://search.cpan.org/src/JWIED/DBD-mysql-2.1024/README:
As of this writing, the above procedure won't work with ActivePerl 5.8.0, because so far a PPM for DBD::mysql is not available from the ActiveState server. I don't know why. However, Randy Kobes has kindly donated a PPM package
to his own repository. You can use this as follows:
ppm install http://theoryx5.uwinnipeg.ca/ppms/DBD-mysql.ppd
works perfectly for me with ActiveState Perl Version 5.8
Posted by ken easson on Tuesday February 11 2003, @11:01pm | [Delete] [Edit] |
I was unable to connect with the ftp server, however i found the ppd here:
http://www.cpan.org/authors/id/JWIED/DBD-mysql-1.2212.x86.ppd
i used ppm2 to install, ppm3 failed all attempts.
Posted by Shane Curveon on Wednesday February 12 2003, @11:29am | [Delete] [Edit] |
Using the Perl Package Manager, I was able to install DBD from the link that is given above and everything is working fine.
Many thanks to the author of the module.
And if you missed it above. Use install in ppm with the folowing URL as the first arguement.
http://theoryx5.uwinnipeg.ca/ppms/DBD-mysql.ppd
Posted by [name withheld] on Tuesday July 29 2003, @12:43pm | [Delete] [Edit] |
A better choice to ActiveState Perl, is your own build of Perl 5.8.0
Instructions on building Perl 5.8.0 for Windows 2000/XP
http://www.devside.net/web/server/win32/perl