Stop the MySQL server.
#/etc/init.d/mysql stop
#mysqld –skip-grant-tables –skip-networking &
# mysql mysql -u root
>UPDATE user SET password=PASSWORD(‘newpassword’) WHERE user=”root”;
>FLUSH PRIVILEGES;
#/etc/init.d/mysql restart
FLUSH PRIVILEGES;
Leave a Reply
You must be logged in to post a comment.