[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] Perl MySQL DBI Error



||>i'm getting the following error when i try running a Perl MySQL script at
||>the console.
||>
||>"Can't locate Mysql.pm in @INC (@INC contains:

Lei,
locate Mysql.pm on your box and put the full server path in the include line
in your script rather than letting the @INC function look for it.
IE: in telnet...
admin> locate Mysql.pm
it will give you an answer if it's on the box. This is a cron job so if
you've got a lot of files on the box it will take a bit longer. It's like
doing a FIND on your Win machine, looks through every directory.
Let's say locate says it's at /usr/bin/mysql/Mysql.pm.
In your script, rather than saying
require 'Mysql.pm';
put
require '/usr/bin/mysql/Mysql.pm';

Hope that helps.
Carrie Bartkowiak