Ok. I want to use apache Apache::Session::MySQL. Awesome. Looks really pretty. Sexy stuff.
I'm looking over it at cpan, and it's a little comfusing.
I should obviously create a database for it- right?
I should also make a table for it?
Do I have to predetermine what the data will be, that is- a table layout? in which case this is useless..
Thanks in advance for any help.
update: ( thanks mbeast ) ok, got further. still no cigar.
I get this:
Can't connect to data source , no database driver specified and DBI_DS +N env var not set at /usr/lib/perl5/site_perl/5.8.3/Apache/Session/Lo +ck/MySQL.pm line 36 (in cleanup) Can't connect to data source , no database driver + specified and DBI_DSN env var not set at /usr/lib/perl5/site_perl/5. +8.3/Apache/Session/Lock/MySQL.pm line 36
I *know* my connect info is correct. I have a proper table in the db too..
I'm using a db handle
&openDBH; # subroutine that # places open handle globally accessible at $DBH my %session; tie %session, 'Apache::Session::MySQL', undef, { Handle => $DBH, TableName => 'sessions2' };
I'm giving up on this one soon..
In reply to setting up to use Apache::Session::MySQL by leocharre
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |