天天看点

转 Resetting the root password for MySQLResetting the root password for MySQL running on RHEL or CentOS

<a href="http://crashmag.net/resetting-the-root-password-for-mysql-running-on-rhel-or-centos">06sep</a>

i recently had to reset the mysql root password due to the fact that initializing it the way i assumed it should did not work. the following procedure will work in centos/rhel/scientific linux and fedora.

after installing mysql using

i ran the command

trying to log in with the following failed

with the following error

decided to not spend more time as it’s a fresh mysql installation. and did the following to reset the root password for mysql.

success!

// crashmag

继续阅读