-- uživatel
CREATE USER 'marek'@'localhost' IDENTIFIED BY 'tojetajny';
GRANT USAGE ON *.* TO 'marek'@'localhost' IDENTIFIED BY 'tojetajny' 
   WITH 
      MAX_QUERIES_PER_HOUR 0 
      MAX_CONNECTIONS_PER_HOUR 0 
      MAX_UPDATES_PER_HOUR 0 
      MAX_USER_CONNECTIONS 0;
-- databáze
CREATE DATABASE IF NOT EXISTS `notes`
    CHARACTER SET utf8
    COLLATE utf8_general_ci; 
GRANT ALL PRIVILEGES ON `notes`.* TO 'marek'@'localhost';
