• Home
  • About
  • BookShelf

A blog by Osama Dwairi

Thoughts and Ideas about Software Engineering and the rest

Feeds:
Posts
Comments

reset root password for Mysql on linux Box

November 26, 2007 by dwairi

If you missed your mysql root user password, then here are the steps to reset it:

  1. stop mysql server
    service mysqld stop
  2. make sure all mysql process are dead
    ps -A | grep mysql
  3. start mysqld in safe mode
    mysqld_safe –skip-grant-tables
  4. open a new shell window and start mysqld
    service mysqld start
  5. access mysql database
    mysql -u root mysql
  6. reset password of root user
    update user set Password=PASSWORD(‘yournewpassword’) where user=’root’;
  7. stop mysqld_safe and restart mysql server
    service mysqld restart.

Happy Administration!

Posted in System Administration, linux, troubleshooting | Tagged linux, mysql, password, recover password, root, root password | No Comments Yet

  • Pages

    • About
    • BookShelf
  • Archives

    • September 2009
    • May 2009
    • January 2009
    • October 2008
    • April 2008
    • December 2007
    • November 2007
    • October 2007
  • Recent Posts

    • Please Drive safe
    • Java Annotations, First Step
    • most frequent concurrency problems in Java
    • SEO – optimizing your website for search engines – the basics
    • josh groban – My December
  • Categories

    • 1
    • bookmarks
    • code snippet
    • Common
    • entertainment
    • here and there
    • howto
    • humor
    • Java
    • javascript
    • linux
    • Markup Languages
    • music
    • News
    • Open Source
    • Personal
    • projects
    • Ruby and Ruby On Rails
    • Search Engines
    • SEO
    • Social Networking
    • Software Management
    • System Administration
    • troubleshooting
  • Meta

    • Log in
    • Entries RSS
    • Comments RSS
    • WordPress.com

Blog at WordPress.com.

Theme: Mistylook by Sadish.