Using MySQL with Perl

P

philsfan17

I'm having a problem running a perl script that uses mySQL. I have
installed both DBI and DBD-mysql using ppm, but when I run a script
that has use mysql in it, I get this error:

Had to create DBI::_dbistate unexpectedly at C:/Perl/lib/DynaLoader.pm
line 253.

Does anyone have any idea what I'm doing wrong?

Thanks!
-Shane
 
J

Jim Keenan

philsfan17 said:
I'm having a problem running a perl script that uses mySQL. I have
installed both DBI and DBD-mysql using ppm, but when I run a script
that has use mysql in it, I get this error:
Please show us your code. Better still, try to present the smallest
possible amount of code that reproduces the error.

jimk
 
I

ioneabu

philsfan17 said:
This is all I'm doing:

#!/bin/perl -w

use mysql;

I use DBI all the time, but I do:

use DBI;

I don't know what mysql.pm is. Is it your own module?

wana
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,767
Messages
2,569,572
Members
45,046
Latest member
Gavizuho

Latest Threads

Top