Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1. create user and password
- ```
- mysql> CREATE USER 'newuser'@'localhost' IDENTIFIED BY 'password';
- ```
- 2. Grant privilege to all dbs
- ```
- mysql> GRANT ALL PRIVILEGES ON * . * TO 'newuser'@'localhost';
- ```
Add Comment
Please, Sign In to add comment