<?php
require_once __DIR__ . '/../config/db.php';

try {
    $pdo = getConnection();
    
    echo "--- DATABASES IN MYSQL ---\n";
    $stmt = $pdo->query("SHOW DATABASES");
    $dbs = $stmt->fetchAll(PDO::FETCH_COLUMN);
    print_r($dbs);

} catch (Exception $e) {
    echo "Error: " . $e->getMessage() . "\n";
}
