Hello:
I am just testing with the following code that I copied from the web (module):
use Apache::Session::Store::MySQL;
my $store = new Apache::Session::Store::MySQL;
$store->insert($ref);
$store->update($ref);
$store->materialize($ref);
$store->remove($ref);
tie %hash, "Apache::Session::MySQL", $id, {
DataSource => "dbi:mysql:webdb",
UserName => "username",
Password => "password"
};
tie %hash, "Apache::Session::MySQL", $id, {
Handle => $dbh
};
and I got the following error message from the command line:
"Can't connect (HASH (0x182559c)), no database driver specified and DBI_DSN
env not set at c:/perl/site/lib/Apache/session/Store/Mysql.pm line 44
Here is what I have at line 44:
$self->{dbh} = DBI->connect(
$datasource,
$username,
$password,
{ RaiseError => 1, AutoCommit => 1 }
) || die $DBI::errstr;
How can I get pass this error message?
Thanks
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]