Perl Tutorials - Herong's Tutorial Examples
Dr. Herong Yang, Version 5.00

Using MySQL Database Server

This chapter provides tutorial examples and notes on MySQL database server access. Topics include installing the DBI module and DBD::mysql module; creating a database connection with the DBI->connect() function.

Installing Database Module for MySQL

HelloMySQL.pl - My First Perl Program with MySQL

Conclusions:

  • DBI module and DBD::mysql module are needed to access MySQl database server.
  • DBI->connect() function establish a client connection to the database server.

Dr. Herong Yang, updated in 2008
Using MySQL Database Server