mysql create user

mysql > CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
mysql > GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
mysql > FLUSH PRIVILEGES;

Share: