Connecting to MySQL from Perl

Overview

In order for Perl to be a “host” language that can communicate with MySQL we need to install some connectivity modules and packages. Let’s talk about that below.

DBI

Perl has the venerable DBI module to communicate with databases so we need that. Since in particular we want to communicate with MySQL we need the “driver” which is DBD::mysql. However, this module relies on a mysql_config which comes from development package1 libmysqlclient-dev

Foot Notes

1 These notes pertain to Ubuntu 9.10.

My tags:
 
Popular tags:
 
Powered by MojoMojo