pearのことは php コミュニティの適切かと思いますが、 http://pear.php.net/manual/ja/package.database.db.intro-connect.php getMessage() getUserInfo() getDebugInfo() があります。