Error using wp-admin/install.php — Call to undefined function mysql_connect()
-
I’m fairly new to WordPress – have experience with creating and editing blogs, but am looking to create a more detailed site with WP as CMS;
Install on local system using Apache 2.4/25, MySQL 5.7, PHP 7.0.14, WP 4.72 (system is also running SQL Server for another project; MySQL installation previously tested and functional), Windows 7; tried in Google Chrome & Firefox;
Launch of wp-admin/install.php generates the following error report in WP-DEBUG (paths edited):
PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in [..]\wordpress\wp-includes\wp-db.php:1568
Stack trace:
#0 [..]\wordpress\wp-includes\wp-db.php(658): wpdb->db_connect()
#1 [..]\wordpress\wp-includes\load.php(404): wpdb->__construct(‘root’, ”, ‘wpdev1’, ‘localhost’)
#2 [..]\wordpress\wp-settings.php(107): require_wp_db()
#3 [..]\Users\Tom\Projects\wordpress\wp-config.php(90): require_once(‘…’)
#4 C:\Users\Tom\Projects\wordpress\wp-load.php(37): require_once(‘…’)
#5 C:\Users\Tom\Projects\wordpress\wp-admin\install.php(36): require_once(‘…’)
#6 {main}
thrown in C:\Users\Tom\Projects\wordpress\wp-includes\wp-db.php on line 1568—
Per https://php.net/manual/en/mysqli.installation.php : “the mysqli extension is enabled and uses the MySQL Native Driver by default”; Tried explicitly declaring it in PHP.INI, no luck;
Fresh installation – no plug-ins or extensions other than that in WP; re-downloaded WP in case of some obscure source of error;
Error occurs whether I create wp-config or let the setup program do it;Any help appreciated!
- The topic ‘Error using wp-admin/install.php — Call to undefined function mysql_connect()’ is closed to new replies.