Reset mysql root password

Wednesday, May 7, 2008 16:36
Posted in category Mokslai, MySQL, Web

Šiandien prireikė numušti root slaptažodį mysql serveriui, radau aprašymą, kuris man padėjo. Veliau aprašysiu viską lietuvių ir žmonių kalba :)

  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.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • NewsVine
  • Reddit
  • StumbleUpon
  • Google Bookmarks
  • Yahoo! Buzz
  • Twitter
  • Technorati
  • Live
  • LinkedIn
  • MySpace

Rekomenduojami įrašai

Statinis-Stebuklas
You can Palikite žinutę arba nuorodą iš Jūsų svetainės.
Nenaudinga informacijaNaudinga informacija (Nevertintas. Būk pirmas!)
Loading ... Loading ...

Komentuokite šį įrašą

 

Security Code: