Notice: These forums are now retired and closed. For active support, please Submit a Ticket or visit our official WordPress.org community pages.
Kadence Theme | Kadence Blocks | Starter Templates | WooCommerce Email Designer | Ascend | Virtue | Pinnacle

PHP Fatal error: Uncaught Error: mysql_connect() in wp-db.php:1562

Home / Forums / Membership Forums / PHP Fatal error: Uncaught Error: mysql_connect() in wp-db.php:1562

This topic is: Resolved
[Resolved]
September 14, 2018 at 6:08 am

I get the above error after a fresh install, [using Win 10.0.17134.285 (64), Apache Lounge 2.4.34 Win 64 VC15, PHP 7.2.9 (requires Visual C++ Redistributable for Visual Studio 2017 x640 , WordPress 4.9.8].

I think wp-db.php arrives at line 1562 (mysql_connect) as a fallback when mysqli_real_connect (in php_mysqli.dll) fails or is not loaded. ( mysql_connect is in mysql? has been discontinued? hence the error at line 1562) This indicates that extphp_mysqli.dll has not loaded.

In php.ini extension dir= “ext” , extension=php_mysqli.dll and ext directory contains php_mysqli.dll and enable_dl on.

phpinfo() shows everything appears to represent the directives in PHP.ini. Is there a way to show if php_mysqli.ini has been loadws?

Has anyone else experienced this problem?

Thanks Rosss

  • The forum ‘Membership Forums’ is closed to new topics and replies.