facebook twitter youtube
in pear - 31 May, 2011, This Tutorial Has Been Viewed 5,061 Times.
by admin - no comments
Pear DB class not found [solved]
VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

Sometimes we use to get an error like ‘Pear DB class not found’ while running some scripts that uses PEAR to connect to the database.

Why this error is thrown?

This is because the DB for PEAR is not installed.

How to fix this error?
Simple
Step 1) If your are using windows, then
Step 2) Go to start, click on RUN
Step 3) Type cmd
Step 4) cd C:\xampp\xampp\php {Change Directory To The Install Root Of XAMPP}
Step 5) Run this ‘pear install DB’ , YOU SHOULD GET SOME OUTPUT LIKE THIS

C:\xampp\xampp\php>pear install DB
WARNING: "pear/DB" is deprecated in favor of "pear/MDB2"
WARNING: channel "pear.php.net" has updated its protocols, use "pear channel-upd
ate pear.php.net" to update
Package "PEAR" Version "1.9.2" does not have REST xml available
downloading DB-1.7.13.tgz ...
Starting to download DB-1.7.13.tgz (132,246 bytes)
.............................done: 132,246 bytes
install ok: channel://pear.php.net/DB-1.7.13

Ignore the warnings. Now run your script. It will be executed successfully.

VN:F [1.9.22_1171]
Rating: 0.0/10 (0 votes cast)

Incoming search terms:




coded by nessus

Leave a Reply

Close
Please support the site
By clicking any of these buttons you help our site to get better