Opened 9 years ago
Closed 9 years ago
#34186 closed enhancement (invalid)
Misleading error message
Reported by: | bjerke-johannessen | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 4.4 |
Component: | Database | Keywords: | |
Focuses: | Cc: |
Description
The error message "Error establishing a database connection" is extremely misleading, as it's at least also returned when the _connection_ to the database is working just fine but WordPress doesn't find the correct schema. I'm attaching a patch with a more descriptive error message, so the maybe others will avoid having to trace down non-existent connections problem when the real issue is with the schema.
Attachments (1)
Change History (4)
#1
@
9 years ago
There is no reason to be snarky. Probably most error messages can be improved and productive suggestions are always welcome.
The thing is that if you can not find the schema in the DB, how do you know that you are connected to the right DB? After all, the installation process had validated the DB and set the correct values in wp-config.php.
Maybe the error should try to give a reason like "no timely response" and "data not found".
Better error message