On Thu, 22 Nov 2001, Jonathan M. Hollin wrote:
> My code now includes:
> 
> 35:  # Session handler...
> 36:  my %session; undef my $session_id;
> 37:  use Apache::Session::MySQL;
> 38:  tie %session, 'Apache::Session::MySQL', $session_id,
> 39:  { DataSource => 'dbi:mysql:sessions', UserName   => 'db_user', Password
> => 'secret' };
> 40:  $session_id = "session_id=$session{_session_id};";
> 
> I am using Apache-Session v1.54.
> 
> The above code generates the following error:
> 
> [Thu Nov 22 10:31:38 2001] [error] PerlRun: `Can't connect(
> HASH(0xbdcf54)), no database driver specified and DBI_DSN env var not set at
> E:/Apache/site/lib/Apache/Session/Lock/MySQL.pm line 36 (in cleanup)
> Can't connect(   HASH(0x47e2f14)), no database driver specified and DBI_DSN
> env var not set at E:/Apache/site/lib/Apache/Session/Lock/MySQL.pm line 36'

You aren't following the documentation.  perldoc Apache::Session::MySQL.  
It says to pass in connection info for a lock connection.
- Perrin

Reply via email to