Advertisement
Guest User

Untitled

a guest
May 16th, 2017
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.21 KB | None | 0 0
  1. mysql> update user set Password=PASSWORD('cyphoroz') WHERE User='root';
  2. Query OK, 3 rows affected (0.01 sec)
  3. Rows matched: 3 Changed: 3 Warnings: 0
  4.  
  5. mysql> flush privileges;
  6. Query OK, 0 rows affected (0.00 sec)
  7.  
  8. mysql> exit
  9. Bye
  10. root@granada:~# fg
  11. /usr/bin/mysqld_safe --skip-grant-tables
  12. Warning; Aborted waiting on pid file: '/var/run/mysqld/mysqld.pid' after 1 seco nds
  13. /usr/bin/mysqladmin: connect to server at 'localhost' failed
  14. error: 'Can't connect to local MySQL server through socket '/var/run/mysqld/mysq ld.sock' (2)'
  15. Check that mysqld is running and that the socket: '/var/run/mysqld/mysqld.sock' exists!
  16. STOPPING server from pid file /var/run/mysqld/mysqld.pid
  17. mysqld_safe[8610]: ended
  18. root@granada:~# /etc/init.d/mysql start
  19. * Starting MySQL database server mysqld [ OK ]
  20. * Checking for corrupt, not cleanly closed and upgrade needing tables.
  21. root@granada:~# mysql --user=root --pass=cyphoroz
  22. ERROR 1045 (28000): Access denied for user 'root'@'localhost' (using password: Y ES)
  23. root@granada:~#
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement