/* username */
CREATE USER IF NOT EXISTS 'username' @'%' IDENTIFIED BY 'username';

GRANT USAGE ON *.* TO 'username' @'%' REQUIRE NONE WITH MAX_QUERIES_PER_HOUR 0 MAX_CONNECTIONS_PER_HOUR 0 MAX_UPDATES_PER_HOUR 0 MAX_USER_CONNECTIONS 0;

CREATE DATABASE IF NOT EXISTS `db_username`;

GRANT ALL PRIVILEGES ON `db_username`.* TO 'username' @'%';