Advertisement
Guest User

Untitled

a guest
Sep 9th, 2017
214
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. root@214679:/# stop mysql
  2. mysql stop/waiting
  3. root@214679:/# ps aux | grep sql
  4. root 25247 0.0 0.0 7620 920 pts/1 S+ 13:08 0:00 grep --color=auto sql
  5. root@214679:/# mysqld_safe --skip-grant-tables &
  6. [1] 25251
  7. root@214679:/# 110526 13:08:47 mysqld_safe Logging to syslog.
  8. 110526 13:08:47 mysqld_safe Starting mysqld daemon with databases from /var/lib/mysql
  9. mysql -u root
  10. Welcome to the MySQL monitor. Commands end with ; or \g.
  11. Your MySQL connection id is 1
  12. Server version: 5.1.41-3ubuntu12.6 (Ubuntu)
  13.  
  14. Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.
  15.  
  16. mysql> use mysql;
  17. Reading table information for completion of table and column names
  18. You can turn off this feature to get a quicker startup with -A
  19.  
  20. mysql> update user set password=PASSWORD('simple') where User='root';
  21. Query OK, 0 rows affected (0.00 sec)
  22. Rows matched: 0 Changed: 0 Warnings: 0
  23.  
  24. mysql> FLUSH PRIVILEGES;
  25. Query OK, 0 rows affected (0.00 sec)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement