SHARE
TWEET

Untitled

a guest Jun 29th, 2018 95 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. shell> /etc/init.d/mysql stop
  2.    
  3. shell> mysqld --user=mysql --pid-file=/var/lib/mysql/mysqld.pid
  4.        --socket=/var/lib/mysql/mysql.sock --datadir=/var/lib/mysql
  5.        --skip-grant-tables --skip-networking  &
  6.    
  7. shell> mysql --database mysql --socket=/var/lib/mysql/mysql.sock
  8.    
  9. mysql> select User, password from user;
  10.    
  11. mysql> update user set password=password('NEW PASS') WHERE User='USERNAME';
  12.    
  13. mysql> exit
  14.    
  15. shell> kill `cat /var/lib/mysql/mysqld.pid`
  16. shell> /etc/init.d/mysql start
  17.    
  18. mysqladmin -u root password <password>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top