Find the answer to your Linux question:
Results 1 to 3 of 3
When i installed mysql it came with an empty password for the root. Then i have set root password using, mysqladmin command... But now i need to reset the password ...
  1. #1
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Thumbs up How reset mysql root password as default?

    When i installed mysql it came with an empty password for the root.

    Then i have set root password using, mysqladmin command...

    But now i need to reset the password as empty again...(since i need to install few rpms which requires empty password for mysql root) - i don't want to uninstall mysql since i have few databases..


    Any idea how to go about this "strange" case
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

  2. #2
    Trusted Penguin elija's Avatar
    Join Date
    Jul 2004
    Location
    Either at home or at work or down the pub
    Posts
    2,300
    Are you sure the RPM's wont ask for the password?

    Anyway you can try stopping the MySQL Server and then starting it again with "mysqld_safe --skip-grant-tables" You can then reset the password with the client of choice but don't forget to restart it normally!!

    This is how you do it if you forget your password.

    You could try logging in as root using your favoured client and then changing the password if you know your root password.

    [edit]
    Or for commandline "mysqladmin -u root -p oldpassword newpass" although I don't know if will set an empty password
    [/edit]
    If we hit that bullseye, the rest of the dominoes will fall like a house of cards. Checkmate! (Zapp Brannigan)


    My new blog. It's probably not as good as I think it is.

  3. #3
    Linux Guru Lakshmipathi's Avatar
    Join Date
    Sep 2006
    Location
    3rd rock from sun - Often seen near moon
    Posts
    1,568

    Smile

    Thanks elija . But setting empty password didn't work for me...so finally reinstalled mysql again.
    I guess some day , we get answer to this question.
    Thanks.
    - Lakshmipathi.G
    -------------------
    FOSS India Award winning ext3fs Undelete tool and tutorials www.giis.co.in
    First they criticize you,Then they laugh at you,Then they fight with you,Then you win. - M.K.Gandhi
    -------------------

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...