Archive for July, 2007

Creating Mysql DB user

Tuesday, July 3rd, 2007


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'@'%';