Guest User

Untitled

a guest
May 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.20 KB | None | 0 0
  1. 1. create user and password
  2.  
  3. ```
  4. mysql> CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
  5. ```
  6. 2. Grant privilege to all dbs
  7. ```
  8. mysql> GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
  9. ```
Add Comment
Please, Sign In to add comment