BK2016
BK2016

Reputation: 1

Can't connect wordpress 4.5.1 to MySQL 5.7.12

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

Answers (1)

ianmjones
ianmjones

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

Related Questions