Installing DBI and DBD on Linux

To try out the Perl DBI, you need to install it. Although Perl is usually preinstalled on a Unix or Linux system, DBI and DBD usually are not. We'll go through the procedure for installing from source on a Unix or Linux system.

The following software components are essential for interfacing between Perl and MySQL:

  • DBI-version, the compressed download called something like DBI-1.18.tar.gz

  • Msql-Mysql-modules-version, the compressed download called something like Msql-Mysql-modules-1.2216.tar.gz

Also recomm]ended is

  • Data-ShowTable-version, the compressed download called something like Data-ShowTable-3.3.tar.gz

First get the tar.gz files by downloading them from the Internet (for example, the API section of http://www.mysql.com/downloads/contrib.html ...

Get Sams Teach Yourself MySQL in 21 Days, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.