Advertisement
Guest User

Untitled

a guest
Jun 14th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.36 KB | None | 0 0
  1. root@acreo:~# mysqld_safe --skip-grant-tables &
  2. [1] 11901
  3. root@acreo:~# nohup: ignoring input and redirecting stderr to stdout
  4. Starting mysqld daemon with databases from /var/lib/mysql
  5. mysqld_safe[11938]: started
  6.  
  7. root@acreo:~#
  8. root@acreo:~# mysql -u root -p
  9. Enter password:
  10. Welcome to the MySQL monitor. Commands end with ; or \g.
  11. Your MySQL connection id is 1
  12. Server version: 5.0.51a-24+lenny4 (Debian)
  13.  
  14. Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
  15.  
  16. mysql> UPDATE mysql.user SET Password=PASSWORD('MyNewPass') WHERE User='root';
  17. Query OK, 0 rows affected (0.00 sec)
  18. Rows matched: 0 Changed: 0 Warnings: 0
  19.  
  20. mysql> FLUSH PRIVILEGES;
  21. Query OK, 0 rows affected (0.00 sec)
  22.  
  23. mysql> exit
  24. Bye
  25. root@acreo:~# killall -9 mysqld_safe
  26. [1]+ Killed mysqld_safe --skip-grant-tables
  27. root@acreo:~#
  28. root@acreo:~# /etc/init.d/mysql start
  29. Starting MySQL database server: mysqld already running.
  30. root@acreo:~# /etc/init.d/mysql restart
  31. Stopping MySQL database server: mysqld.
  32. Starting MySQL database server: mysqld.
  33. Checking for corrupt, not cleanly closed and upgrade needing tables..
  34. root@acreo:~# mysql -u root -p
  35. Enter password:
  36. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: YES)
  37. root@acreo:~# mysql -u root
  38. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: NO)
  39. root@acreo:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement