Here is how to change the mysql root password from the Linux command line. Replace “root” with any user name to change any password.
# /etc/init.d/mysql stop
# mysqld --skip-grant-tables
# mysqladmin -u root password 'newpasswd'
# /etc/init.d/mysql start
Cheers!
No comments:
Post a Comment