Guest User

Untitled

a guest
Oct 20th, 2017
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. #create the new user
  2. CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
  3. #create the new database
  4. CREATE DATABASE newdatabase;
  5. #assign the user to it
  6. GRANT ALL PRIVILEGES ON newdatabase. * TO 'newuser'@'localhost';
  7. #flush
  8. FLUSH PRIVILEGES;
Add Comment
Please, Sign In to add comment