I have tried getting my Perl 5.8.9 installation configured for Mysql. I have used cpan and PPM to get mysqlPP, DBD::mysql-simple modules.

I am trying this on Windows XP with Mysql 5.

Here is my latest error:
C:\>perl c:\perl\test.pl
DBD::mysql initialisation failed: Can't locate object method "driver" via package "DBD::mysql" at C:/Perl/lib/DBI.pm line 787.

Perhaps the capitalisation of DBD 'mysql' isn't right. at c:\perl\test.pl line 12

I have tried all caps and all lower caps.

I am a total n00b, and have been all over the web trying to figure this out. Any help would be greatly appreciated.

spivey

Recommended Answers

All 3 Replies

It appears that you need to install DBD::mysql

It appears that you need to install DBD::mysql

I have tried to install DBD::mysql, but when I run my script, it doesn't find it. I have used cpan and ppm. Do I need to move it after it has been installed?

You can find DBD::mysql here:

http://theoryx5.uwinnipeg.ca/ppms/

add that to your repository list or install it directly from there. See the PPM help files if necessary

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.