a4adf9a398
The calculate_server_memory_capacity() function was hanging during optimization levels 1-4 because of unguarded MySQL queries. Fixed: 1. Added 2-second timeout to MySQL queries in detect_mysql_memory_usage() - Lines 1395-1396: buffer_pool_mb and max_connections queries - These would hang indefinitely if MySQL was slow or unresponsive 2. Added 5-second timeout to detect_mysql_memory_usage() call - Line 1008 in calculate_server_memory_capacity() - Prevents the entire function from blocking This allows optimization levels 1-5 to execute without hanging when MySQL is unavailable or slow to respond.