[wp-trac] [WordPress Trac] #21663: Use mysqli for MySQL queries when available
WordPress Trac
noreply at wordpress.org
Wed Mar 26 17:03:50 UTC 2014
#21663: Use mysqli for MySQL queries when available
------------------------------+------------------
Reporter: scottconnerly | Owner:
Type: task (blessed) | Status: new
Priority: normal | Milestone: 3.9
Component: Database | Version: 3.5
Severity: normal | Resolution:
Keywords: has-patch commit | Focuses:
------------------------------+------------------
Comment (by benjamin4):
I'm using Zend Server 6.1.0 (Free Version).
I agree it is an configuration issue, however IMO it took me too much time
to figure this out.
If I hadn't enabled WP_DEBUG, I wouldn't have seen the notice of
mysqli_real_connect(), but only the generic "Error establishing a database
connection"-Site, where sockets aren't even mentioned.
So instead of preventing the error (which we can't), we should improve its
documentation. My suggestions:
- wp-config.php could include Syntax examples for valid uses of DB_HOST
- The error site on /wp-admin/ could link to a specific troubleshooting
site on Codex instead of linking to the forum in general.
- It could also mention the recent move to Mysqli as possible cause.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/21663#comment:217>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list