mysql perl connection problem
Jamal Nasir <[email protected]> Tue, 27 Jul 2010 06:52:27 -0700 (PDT)
| Newsgroups | gmane.comp.db.mysql.perl |
|---|---|
| Message-ID | <[email protected]> |
i have installed perl in windows.
When i execute the following code:
#!/usr/bin/perl
# PERL MODULE
use DBD::Mysql;
# HTTP HEADER
print "Content-type: text/html \n\n";
# CONFIG VARIABLES
$host = "127.0.0.1";
$database = "shah569";
$user = "jmlnsr";
$pw = "ntr562";
# PERL MYSQL CONNECT
$connect = Mysql->connect($host, $database, $user, $pw);
print 'Hello';
I get following error in apache error log.
Can't locate object method "connect" via package "Mysql" (perhaps you forgot to
load "Mysql"
--
MySQL Perl Mailing List
For list archives: http://lists.mysql.com/perl
To unsubscribe: http://lists.mysql.com/[email protected]