2.13.2. Installing ActiveState Perl on Windows
On Windows, you should do the following to install the MySQL
DBD module with ActiveState Perl:
Get ActiveState Perl from
and install it.
Open a console window (“DOS window”).
If necessary, set the
variable. For example, you might try a setting like this:
Start the PPM program:
If you have not previously done so, install
ppm> install DBI
If this succeeds, run the following command:
This procedure should work with ActiveState Perl 5.6 or newer.
If you cannot get the procedure to work, you should install the
MyODBC driver instead and connect to the MySQL server through
$dbh= DBI->connect("DBI:ODBC:$dsn",$user,$password) ||
die "Got error $DBI::errstr when connecting to $dsn\n";