Support » Installing WordPress » PHP 7.3.1, wp 5.03, mysql 8.0.15 IIS 7.5

  • Resolved klampl

    (@klampl)


    new install of PHP, windows 2012 r2(IIS 7.5) MySQL and WordPress 5.0.3

    php works by itself (https://james.lampl.net/james/j1/index2.php)

    Uncaught Error: Call to undefined function mysql_connect() in E:\WWW\lampl.net\wp-includes\wp-db.php:1564 Stack trace: #0 E:\WWW\lampl.net\wp-includes\wp-db.php(592): wpdb->db_connect() #1 E:\WWW\lampl.net\wp-includes\load.php(409): wpdb->__construct(‘wpprivate1’, ‘$#*1S118LL|95Hd…’, ‘wp_karl’, ‘localhost’) #2 E:\WWW\lampl.net\wp-settings.php(106): require_wp_db() #3 E:\WWW\lampl.net\wp-config.php(107): require_once(‘E:\\WWW\\lampl.ne…’) #4 E:\WWW\lampl.net\wp-load.php(37): require_once(‘E:\\WWW\\lampl.ne…’) #5 E:\WWW\lampl.net\wp-blog-header.php(13): require_once(‘E:\\WWW\\lampl.ne…’) #6 E:\WWW\lampl.net\index.php(17): require(‘E:\\WWW\\lampl.ne…’) #7 {main} thrown in E:\WWW\lampl.net\wp-includes\wp-db.php on line 1564

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Steven Stern (sterndata)

    (@sterndata)

    Volunteer Forum Moderator

    You do not have the right php/mysql libraries installed. In Linux land, it would be something like php-mysqlnd

    https://stackoverflow.com/questions/8223206/how-to-install-mysqli-on-windows-iis-server

    Dion

    (@diondesigns)

    A client recently reported this error to me. Apparently PHP 7.3 did not recognize MySQL8 at runtime, which resulted in the mysqli extension not being loaded. Reverting from PHP 7.3 to 7.2 fixed the problem.

    You should check your phpinfo() page and see if the mysqli extension is loaded. If it is not, then your only recourse is to use PHP 7.2. Which is for the best…the term “bleeding edge” got its name for a reason!

    Thread Starter klampl

    (@klampl)

    this is not my first install of PHP, WordPress etc. what is odd is this is set up exactly like the other 22 installs I have but the only difference is versions of everything. I copied the install from php version 7.02 machine and imported the DB. I verified username and pw works on DB. verified PHP is working correctly. and the above is what I get. but just to be sure I re-dl the windows x64 binaries and installed them. rechecked everything.

    Thread Starter klampl

    (@klampl)

    That’s it. Thanks Dion, Mysqli is not loading even though it is enabled. Mysqlnd loads just fine.

    well back to 7.2.x

    this was to be a newest of everything machine but ohh well.

    Thanks Very much I missed that.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘PHP 7.3.1, wp 5.03, mysql 8.0.15 IIS 7.5’ is closed to new replies.