DBI / MySQL problem

Michael DeVicariis webtemp at ucsd-pps.ucsd.edu
Tue Oct 3 10:43:34 CDT 2000


~sdpm~
All,

I have the MySQL server installed on our NT server.  I can connect just fine
on my windows machine through MyODBC and the command line client.  When I
run my perl script (via command line), I get the following:



>perl -w mysql_test.pl
Can't locate loadable object for module DBI in @INC (@INC contains:
C:/Perl/lib
C:/Perl/site/lib .) at C:/Perl/site/lib/DBI.pm line 168
BEGIN failed--compilation aborted at C:/Perl/site/lib/DBI.pm line 168.
Compilation failed in require at mysql_test.pl line 9.
BEGIN failed--compilation aborted at mysql_test.pl line 9.


########### script below ################

# mysql_test.pl
#
# Description:

#!d:\perl\bin\perl.exe

$|=1;

use DBI();
#use DBD();

$query = "select * from inventory.employees";
#&get_today;

# Connect to the database.
my $dbh = DBI->connect("DBI:mysql:database=inventory;host=aps-syb2",
        "user", "password",
        {'RaiseError' => 1});



# Disconnect from the database.
$dbh->disconnect();



Any suggestions?


Michael DeVicariis
Web Administrator/Developer
Programmer/Analyst
UCSD Auxiliary & Plant Services
(858) 534-0700



~sdpm~

The posting address is: san-diego-pm-list at hfb.pm.org

List requests should be sent to: majordomo at hfb.pm.org

If you ever want to remove yourself from this mailing list,
you can send mail to <majordomo at happyfunball.pm.org> with the following
command in the body of your email message:

    unsubscribe san-diego-pm-list

If you ever need to get in contact with the owner of the list,
(if you have trouble unsubscribing, or have questions about the
list itself) send email to <owner-san-diego-pm-list at happyfunball.pm.org> .
This is the general rule for most mailing lists when you need
to contact a human.




More information about the San-Diego-pm mailing list