Installation
Installation of PEAR will vary according to which operating system you are using. A Linux/Unix machine (especially if XAMPP has been installed on it as described in Chapter 2) will generally be ready to go after issuing just a couple of commands. But Windows and Mac OS X require a little more work.
Windows
The EasyPHP setup that you installed in Chapter 2 comes packaged with a version of PEAR that you can install by selecting Start→Programs→Accessories and then right-clicking on the Command Prompt and choosing the “Run as Administrator” option. You must have administrative privileges to install PEAR.
Now navigate to C:\Program Files\EasyPHP 3.0\php\, then run the batch file go-pear.bat by typing the following (and then pressing Return):
go-pear
During installation, accept the defaults by pressing Return whenever you’re asked to do something. Figure E-1 shows the installation process.

Next you need to install PEAR’s database helper package, called MDB2, by typing in the following (see Figure E-2):
pear install MDB2

To finish your installation, install the MDB2 add-on driver that understands how to interact with MySQL. To do this, type in the following (see Figure E-3):
pear install -f MDB2_Driver_mysql ...