-- mysql -u shmyga -pxkbp8jh9z2 armageddon --protocol TCP
CREATE USER 'shmyga'@'localhost' IDENTIFIED BY 'xkbp8jh9z2';

DROP DATABASE IF EXISTS armageddon;
CREATE DATABASE IF NOT EXISTS armageddon;
GRANT ALL ON armageddon.* TO 'shmyga'@'localhost' IDENTIFIED BY 'xkbp8jh9z2';


DROP TABLE IF EXISTS armageddon.users;
CREATE TABLE IF NOT EXISTS armageddon.users (
  id INT UNSIGNED PRIMARY KEY AUTO_INCREMENT,
  login VARCHAR(255) UNIQUE,
  password VARCHAR(32)
);
INSERT INTO armageddon.users (login,password) VALUES('shmyga', 'd48cc4eb42c058869ae90daef9606e43');