分类:
2009-01-15 12:01:10
Installation of DBD::mysql can be incredibly easy:
cpan install DBD::mysql
If you are using the CPAN module for the first time, just answer the questions by accepting the defaults which are fine in most cases. If you are using an older version of Perl, you might instead need a
perl -MCPAN -e shell install DBD::mysql
If you cannot get the CPAN module working, you might try manual installation. If installation with CPAN fails because the your local settings have been guessed wrong, you need to ensure MySQL's mysql_config is on your path (see ) or alternatively create a script called mysql_config
. This is described in more details later.