输出phpinfo();检查是否有mysql 如果没有,apt-get install php5-mysql模块,别忘了重启一下 转载于:https://www.cnblogs.com/SQL/archive/2010/09/08/1821227.html