Creating Mysql DB user


CREATE USER 'xxx'@'%' IDENTIFIED BY 'yyy';

GRANT USAGE ON * . * TO 'xxx'@'%' IDENTIFIED BY 'yyy' 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 `xxx` ;

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

Leave a Reply