<?php
$cfg = json_decode(file_get_contents(__DIR__ . '/core/config.json'), true);
$pdo = new PDO('mysql:host=' . $cfg['db_host'] . ';dbname=' . $cfg['db_name'] . ';charset=utf8mb4', $cfg['db_user'], $cfg['db_pass']);
$pdo->setAttribute(PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION);
foreach ($pdo->query('SHOW TABLES') as $row) {
    echo reset($row), PHP_EOL;
}
