Advertisement
Guest User

Untitled

a guest
Feb 1st, 2017
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.33 KB | None | 0 0
  1. CREATE DATABASE `final` DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci;
  2.  
  3. DROP DATABASE final;
  4.  
  5. CREATE USER 'fanwu'@'%' IDENTIFIED BY '123456';
  6.  
  7. GRANT ALL PRIVILEGES ON final.* TO 'fanwu';
  8.  
  9. FLUSH PRIVILEGES ;
  10.  
  11. # Modify root password
  12.  
  13. use mysql;
  14. update user set password=PASSWORD("mynewpassword") where User='root';
  15. flush privileges;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement