在浏览器中运行的工作index.php如下所示: $dbh = new PDO(...whatevershell> php index.phpFatal error: Uncaught exception 'PDOException' with message'SQLSTATE[HY000] [2002] No such file or directory' in
我试图在PHP 5.3 (在IIS 7.5下)上安装Wordpress 3.1,但是在进入配置页面之前,它会抛出以下错误:
Your PHP installation appears to be missingthe MySQL extension which is required by WordPress.通常,这意味着MySQL驱动程序还没有加载,所以我检查了phpinfo()是否有正确的php.ini文件,并验证扩展目录的路径是正确的(C:\PHP)。我在phpinfo()中注意
/usr/bin/php /Users/somethingunusual/IdeaProjects/local/secure/cron/payment/listing/return/job.cron.phplogFor=LOCAL_DB errorMessage=[Error message: extension mysql is not compiled into PHP]
code=-4