在win10上装WordPress,配置完wp-config.php文件后打开主页面,却显示出如下代码
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in D:\website\wordpress\wp-includes\wp-db.php:1688 Stack trace: #0 D:\website\wordpress\wp-includes\wp-db.php(632): wpdb->db_connect() #1 D:\website\wordpress\wp-includes\load.php(558): wpdb->__construct('root', 'WKL111111!', 'wordpress', 'localhost') #2 D:\website\wordpress\wp-settings.php(124): require_wp_db() #3 D:\website\wordpress\wp-config.php(96): require_once('D:\website\word...') #4 D:\website\wordpress\wp-load.php(50): require_once('D:\website\word...') #5 D:\website\wordpress\wp-blog-header.php(13): require_once('D:\website\word...') #6 D:\website\wordpress\index.php(17): require('D:\website\word...') #7 {main} thrown in D:\website\wordpress\wp-includes\wp-db.php on line 1688
不知道是什么原因,可能是数据库出错哪里没设置对?用的是mysql。求帮助!