create schema DBNAME default character set utf8;
create user 'USER'@'%' identified by 'PASSWORD';
create user 'USER'@'localhost' identified by 'PASSWORD';
grant all privileges on DBNAME.* to 'USER'@'localhost';
grant all privileges on DBNAME.* to 'USER'@'%';
flush privileges;