Advertisement
Guest User

Untitled

a guest
Sep 28th, 2017
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.83 KB | None | 0 0
  1. # /etc/init.d/mysql stop
  2. Shutting down MySQL..
  3. # mysqld_safe --skip-grant-tables --skip-networking &
  4. [1] 4983
  5. # Starting mysqld daemon with databases from /var/lib/mysql
  6.  
  7. # mysql mysql
  8. Welcome to the MySQL monitor. Commands end with ; or \g.
  9. Your MySQL connection id is 1 to server version: 5.0.21-log
  10.  
  11. Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
  12.  
  13. mysql> update user set password=password('aaaaaaaa') where user="root" and host="localhost";
  14. Query OK, 0 rows affected (0,00 sec)
  15. Rows matched: 1 Changed: 0 Warnings: 0
  16.  
  17. mysql> exit
  18. Bye
  19. # mysqladmin shutdown
  20. STOPPING server from pid file /var/lib/mysql/debian.pid
  21. 030811 14:38:40 mysqld ended
  22.  
  23. [1]+ Done /usr/local/mysql/bin/mysqld_safe --skip-grant-tables --skip-networking
  24. # /etc/init.d/mysql start
  25. Starting MySQL
  26. # mysql -u root -p
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement