<?php
$cfg = require __DIR__.'/config.php';
$pdo = new PDO(
  "mysql:host={$cfg['host']};dbname={$cfg['db']};charset=utf8mb4",
  $cfg['user'],
  $cfg['pass'],
  [PDO::ATTR_ERRMODE => PDO::ERRMODE_EXCEPTION]
);
