使用MDB2连接到mysql 报错
Fatal error: Call to undefined function: MDB2_Driver_mysql::isError(). in /usr/share/pear/MDB2.php on line 1996
在stackoverflow http://stackoverflow.com/questions/2682332/mdb2-pear-mysql-error 上看到相关解决办法
上面解释说 MDB2 和 MDB2_driver_mysql的版本太旧了 , 然后我就用pear 更新了一下
pear install MDB2-2.5.0b5
pear install MDB2_Driver_mysql-1.5.0b4
pear install MDB2_Driver_mysqli-1.5.0b4
还有就是一定要检查代码。。。
我密码写错了卡在 MDB2 Error: insufficient permissions 搞了半天发现密码不对。。。