[wp-trac] [WordPress Trac] #51988: Call to undefined function mysql_connect()
WordPress Trac
noreply at wordpress.org
Mon Aug 1 23:03:04 UTC 2022
#51988: Call to undefined function mysql_connect()
--------------------------+-----------------------------
Reporter: bgin | Owner: (none)
Type: defect (bug) | Status: reopened
Priority: normal | Milestone: Future Release
Component: Database | Version: 5.6
Severity: normal | Resolution:
Keywords: php8 | Focuses:
--------------------------+-----------------------------
Comment (by SergeyBiryukov):
{{{
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in
wp-includes/class-wpdb.php:1963
}}}
I was able to reproduce this error message by accidentally using a non-
thread safe version of PHP as an Apache module, instead of the thread safe
version recommended in that case. Switching to the latter resolved the
issue.
Not 100% sure why, but `phpinfo()` shows that `mysqli` is only available
in thread safe version, while `mysqlnd` is available in both.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51988#comment:16>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list