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'; ?>
| = t('Host') ?> / IP | = htmlspecialchars($dbHost) ?> |
| = t('Puerto') ?> | = htmlspecialchars($dbPort) ?> |
| = t('Base de Datos') ?> | = htmlspecialchars($dbName) ?> |
| = t('Versión MySQL') ?> | = htmlspecialchars($dbVersion ?? 'N/A') ?> |
| = t('Tamaño') ?> | = $dbSize ?? '0' ?> MB |
| = t('Tablas') ?> | = $tableCount ?? '0' ?> |
| = t('Versión PHP') ?> | = phpversion() ?> |
| = t('Software Servidor') ?> | = $_SERVER['SERVER_SOFTWARE'] ?? 'N/A' ?> |
| = t('Nombre Servidor') ?> | = $_SERVER['SERVER_NAME'] ?? 'N/A' ?> |
| = t('Raíz Documentos') ?> | = $_SERVER['DOCUMENT_ROOT'] ?? 'N/A' ?> |
| = t('Zona Horaria') ?> | = date_default_timezone_get() ?> |