Guest User

Untitled

a guest
Jan 24th, 2018
119
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.66 KB | None | 0 0
  1. [chris@office ~]$ mysql -u root -p mysql
  2.  
  3. Enter password:
  4. Reading table information for completion of table and column names
  5. You can turn off this feature to get a quicker startup with -A
  6.  
  7. Welcome to the MySQL monitor. Commands end with ; or g.
  8. Your MySQL connection id is 267
  9. Server version: 5.1.41-3ubuntu12.1 (Ubuntu)
  10.  
  11. Type 'help;' or 'h' for help. Type 'c' to clear the current input statement.
  12.  
  13. mysql> use mysql;
  14. Database changed
  15.  
  16. mysql> update user set Password=OLD_PASSWORD('password') WHERE User='username';
  17.  
  18. Query OK, 0 rows affected (0.02 sec)
  19. Rows matched: 0 Changed: 0 Warnings: 0
  20.  
  21. mysql> flush privileges;
  22.  
  23. Query OK, 0 rows affected (0.00 sec)
  24.  
  25. mysql>
Add Comment
Please, Sign In to add comment