PHP error category
Database Connections
Connection and authentication.
Database Connections errors arise when connection and authentication affect an executing PHP application or its supporting service. Use the exact signature and runtime context to narrow the cause before changing configuration.
The guides in this category separate code defects from environment differences, show focused diagnostics, and favor site-scoped corrections that preserve unrelated applications.
Guides in this category
| Title | Pattern | Severity |
|---|---|---|
| PDO could not find driver | PDOException: could not find driver |
fatal |
| SQLSTATE 28000 access denied | SQLSTATE[28000] [1045] Access denied for user 'app'@'%s' (using password: YES) |
fatal |
| SQLSTATE HY000 connection refused | SQLSTATE[HY000] [2002] Connection refused |
fatal |
| SQLSTATE HY000 MySQL socket not found | SQLSTATE[HY000] [2002] No such file or directory |
fatal |