X1024mb’s other side

September 5, 2007

:: Reset mySql Password ::

Filed under: :: Hacking ::, :: Linux :: — x1024mb @ 11:22 am

taken from : http://www.tech-faq.com/reset-mysql-password.shtml

How to Reset a MySQL Password in 5 Easy Steps

  1. Stop the mysqld daemon process.
  2. Start the mysqld daemon process with the –skip-grant-tables option.
  3. Start the mysql client with the -u root option.
  4. Execute the UPDATE mysql.user SET Password=PASSWORD(‘password’) WHERE User=’root’;
  5. Execute the FLUSH PRIVILEGES; command.

These steps reset the password for the “root” account to “password”. To change the password for a different account, or to set a different password, just edit the variables in single-quotes in step 4. If you know your existing MySQL root password, steps 1-3 are not necessary.

//– justĀ  additional information :

- you can use phpMyAdmin with no password setted, and change your root password after that.

- step no.2, you can use this command :

$ /usr/libexec/mysql –skip-grant-tables

Advertisement

1 Comment »

  1. good……..

    Comment by ricisan — September 5, 2007 @ 3:11 pm


RSS feed for comments on this post. TrackBack URI

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Connecting to %s

Theme: Shocking Blue Green. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.