MySQLi Error: Server encountered multiple critical database failures. Connection pool exhausted.
[2026-07-11 22:45:12] CRITICAL: PDOException: SQLSTATE[HY000] [2002] No such file or directory
[2026-07-11 22:45:12] ERROR: Failed to connect to MySQL: Access denied for user 'app_user'@'localhost' (using password: YES)
[2026-07-11 22:45:13] SQLSTATE[42S02]: Base table or view not found: 1146 Table 'production.users' doesn't exist
[2026-07-11 22:45:13] Query: SELECT * FROM `users` WHERE `id` = ? LIMIT 1
[2026-07-11 22:45:14] ERROR: Duplicate entry 'user@example.com' for key 'email'
[2026-07-11 22:45:14] INSERT INTO `sessions` (`user_id`, `token`) VALUES (?, ?)
[2026-07-11 22:45:15] SQLSTATE[23000]: Integrity constraint violation: 1452 Cannot add or update a child row: a foreign key constraint fails
[2026-07-11 22:45:15] Table: orders, Foreign Key: user_id references users(id)
[2026-07-11 22:45:16] Warning: mysqli_fetch_assoc() expects parameter 1 to be mysqli_result, boolean given
[2026-07-11 22:45:17] CRITICAL: SQL syntax error near 'FROM users WHERE id = '999999999999'' at line 1
[2026-07-11 22:45:18] Deadlock found when trying to get lock; try restarting transaction
[2026-07-11 22:45:19] ERROR: Table 'cache' is marked as crashed and should be repaired
[2026-07-11 22:45:20] Query failed: Too many connections (max_connections = 151)
[2026-07-11 22:45:21] SQLSTATE[42000]: Syntax error or access violation: 1064 You have an error in your SQL syntax
[2026-07-11 22:45:22] Near: 'UPDATE inventory SET stock = stock - 1 WHERE product_id = 0'
[2026-07-11 22:45:23] Authentication plugin 'caching_sha2_password' cannot be loaded
[2026-07-11 22:45:24] ERROR: Column 'password_hash' cannot be null
[2026-07-11 22:45:25] Transaction rollback due to previous error
[2026-07-11 22:45:26] Prepared statement failed: Invalid parameter number: no parameters were bound
[2026-07-11 22:45:27] MySQL server has gone away
[2026-07-11 22:45:28] Lost connection to MySQL server at 'reading initial communication packet'
[2026-07-11 22:45:29] ERROR: Data too long for column 'description' at row 1
[2026-07-11 22:45:30] Stack trace:
#0 /var/www/html/app/models/User.php(145): PDO->prepare()
#1 /var/www/html/app/controllers/AuthController.php(89): User->findByEmail()
#2 /var/www/html/index.php(67): AuthController->login()
#3 {main}
[2026-07-11 22:45:31] Additional info: Database host unreachable after 3 retries
Application crashed. Please contact administrator.
Error Code: DB-ERR-0x7F42A9 | Server: prod-db-01.internal