<?php
try { 
    $pdo = new PDO('mysql:host=127.0.0.1;port=3306', 'root', ''); 
    $pdo->exec('CREATE DATABASE IF NOT EXISTS `sertifikat_generator`'); 
    echo 'DB Created'; 
} catch (PDOException $e) { 
    echo $e->getMessage(); 
}
