[wp-trac] [WordPress Trac] #51988: Call to undefined function mysql_connect() (was: wordpress 5.6 not ok with php 8)
WordPress Trac
noreply at wordpress.org
Wed Dec 9 15:08:32 UTC 2020
#51988: Call to undefined function mysql_connect()
--------------------------+----------------------
Reporter: bgin | Owner: (none)
Type: defect (bug) | Status: closed
Priority: normal | Milestone:
Component: Database | Version: 5.6
Severity: normal | Resolution: invalid
Keywords: | Focuses:
--------------------------+----------------------
Comment (by SergeyBiryukov):
Just to clarify a bit more, since version 3.9, WordPress uses `mysqli` on
PHP 5.5 or later instead of the deprecated `mysql` extension. See this
post for more context: [https://make.wordpress.org/core/2014/04/07/mysql-
in-wordpress-3-9/ MySQL in WordPress 3.9].
I would suggest checking that the `mysqli` extension is available and the
`WP_USE_EXT_MYSQL` constant is **not** defined in `wp-config.php`.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/51988#comment:2>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list