Advertisement
Guest User

Untitled

a guest
Sep 20th, 2017
402
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.77 KB | None | 0 0
  1. abacker@antoo-laptop:/var/www/wp$ mysql -u root -p -D mysql
  2. Enter password:
  3. Reading table information for completion of table and column names
  4. You can turn off this feature to get a quicker startup with -A
  5.  
  6. Welcome to the MySQL monitor. Commands end with ; or \g.
  7. Your MySQL connection id is 88
  8. Server version: 5.1.54-1ubuntu4 (Ubuntu)
  9.  
  10. Copyright (c) 2000, 2010, Oracle and/or its affiliates. All rights reserved.
  11. This software comes with ABSOLUTELY NO WARRANTY. This is free software,
  12. and you are welcome to modify and redistribute it under the GPL v2 license
  13.  
  14. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  15.  
  16. mysql> SELECT host, user, password FROM user WHERE user = 'wordpress';
  17. +------+-----------+-------------------------------------------+
  18. | host | user | password |
  19. +------+-----------+-------------------------------------------+
  20. | % | wordpress | *F33AE6DD04EF4C7C1D3105568E7FB7C1EE16C937 |
  21. +------+-----------+-------------------------------------------+
  22. 1 row in set (0.00 sec)
  23.  
  24. mysql> SET PASSWORD FOR wordpress = PASSWORD('a');
  25. Query OK, 0 rows affected (0.00 sec)
  26.  
  27. mysql> SELECT host, user, password FROM user WHERE user = 'wordpress';
  28. +------+-----------+-------------------------------------------+
  29. | host | user | password |
  30. +------+-----------+-------------------------------------------+
  31. | % | wordpress | *667F407DE7C6AD07358FA38DAED7828A72014B4E |
  32. +------+-----------+-------------------------------------------+
  33. 1 row in set (0.00 sec)
  34.  
  35. mysql> FLUSH PRIVILEGES;
  36. Query OK, 0 rows affected (0.00 sec)
  37.  
  38. mysql> \q
  39. Bye
  40. /var/www/wp$ mysql -u wordpress -pa
  41. ERROR 1045 (28000): Access denied for user 'wordpress'@'localhost' (using password: YES)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement