# /etc/init.d/mysqld stop
# mysqld_safe --skip-grant-tables &
# mysql -u root
mysql> use mysql;
mysql> update user set password=PASSWORD("yournewpasswordhere") where User='root';
mysql> flush privileges;
mysql> quit
# /etc/init.d/mysqld stop
# /etc/init.d/mysqld start
Now you can login with your new password
# mysql -u root -p
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment