query('SELECT VERSION()')->fetchColumn(); $dbSize = $pdo->query("SELECT ROUND(SUM(data_length + index_length) / 1024 / 1024, 2) AS size_mb FROM information_schema.tables WHERE table_schema = '$dbName'")->fetchColumn(); $tableCount = $pdo->query("SELECT COUNT(*) FROM information_schema.tables WHERE table_schema = '$dbName'")->fetchColumn(); } catch (Exception $e) { $dbError = $e->getMessage(); } require_once __DIR__ . '/../templates/header.php'; ?>
| Host / IP | = htmlspecialchars($dbHost) ?> |
| Puerto | = htmlspecialchars($dbPort) ?> |
| Base de Datos | = htmlspecialchars($dbName) ?> |
| Versión MySQL | = htmlspecialchars($dbVersion ?? 'N/A') ?> |
| Tamaño | = $dbSize ?? '0' ?> MB |
| Tablas | = $tableCount ?? '0' ?> |
| PHP Version | = phpversion() ?> |
| Server Software | = $_SERVER['SERVER_SOFTWARE'] ?? 'N/A' ?> |
| Server Name | = $_SERVER['SERVER_NAME'] ?? 'N/A' ?> |
| Document Root | = $_SERVER['DOCUMENT_ROOT'] ?? 'N/A' ?> |
| Timezone | = date_default_timezone_get() ?> |