How to install PEAR and MDB2 in Ubuntu

Install the following packages if you need MDB2 library to connect to a MySQL database server.

Install MySQL package for MDB2:

sudo apt-get install php-mdb2-driver-mysql

Install PEAR:

sudo apt-get install php-pear

Install MDB2 library:

sudo pear install MDB2

Install MDB2 MySQL Driver:

sudo pear install MDB2_Driver_Mysql