This installs 2 modules Apache::DBI::Cache und Apache::DBI::Cache::mysql.
Apache::DBI::Cache
Apache::DBI::Cache::mysql
perl Makefile.PL make make test make install
Since Apache::DBI::Cache::mysql depends on MySQL you need 2 databases on the same DB server listening on port 3306 to test it. Nothing will be written to them. Only connections are established and the SHOW PROCESSLIST command is executed.
SHOW PROCESSLIST
The connection parameters are passed to the test as environment variables. If you do not want to test it leave them empty and the plugin test (t/100mysql) is silently skipped.
t/100mysql
These environment variables are used:
the 2 database names
the database host. If omitted localhost is used.
localhost
you credentials.
My make test command looks like:
make test
MYSQL1=dbitest1 MYSQL2=dbitest2 make test
If BerkeleyDB is not available a few tests are skipped.
BerkeleyDB
BerkeleyDB is used if installed to make DBI handle statistics visible for the whole Apache process group instead of a single process.
DBI 1.37
perl 5.8.0
EOF
perldoc -tU README.pod >README
To install Apache::DBI::Cache, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Apache::DBI::Cache
CPAN shell
perl -MCPAN -e shell install Apache::DBI::Cache
For more information on module installation, please visit the detailed CPAN module installation guide.