-- Creazione utente con password (se necessario cambiare l'host)
CREATE USER 'username'@'localhost' IDENTIFIED BY 'password';

-- Creazione database
CREATE DATABASE dbname;

-- Grant all'utente di tutti i privilegi sul database
GRANT ALL PRIVILEGES ON dbname.* TO 'username'@'localhost' WITH GRANT OPTION;