Reputation: 1
Please help. I am failing to connect MySQL 5.7.12
database to Wordpress 4.5.1
. Whenever I try to connect, I get the following error:
PHP Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\inetpub\wwwroot\wp-includes\wp-db.php:1522
Upvotes: 0
Views: 797
Reputation: 3415
Do you have the following in your wp-config.php file?
define( 'WP_USE_EXT_MYSQL', true );
If so, comment it out.
That setting forces use of the "old" (deprecated) library for connecting to MySQL, you don't want that.
Upvotes: 1