<?php
$mysqli = new mysqli("127.0.0.1", "root", "", "", 3306);
if ($mysqli->connect_error) {
    die("Connection failed: " . $mysqli->connect_error);
}
if ($mysqli->query("CREATE DATABASE IF NOT EXISTS swagvio") === TRUE) {
    echo "Database created or already exists.\n";
} else {
    echo "Error creating database: " . $mysqli->error . "\n";
}
$mysqli->close();
?>
