Setting up mysql password fails

Discussion in 'HOWTO-Related Questions' started by rh-penguin, Dec 4, 2006.

  1. rh-penguin

    rh-penguin New Member


    I've bin following: The Perfect Setup: Fedora Core 4 guide. However, im stuck on page 4; its related to MySQL.

    When i try to run the following command:
    mysqladmin -h -u root password myMySQLpassword

    I get the following error:
    mysqladmin: connect to server at '' failed
    error: 'Access denied for user 'root'@'localhost' (using password: NO)'

    What can i do to fix this?

    Thanks Alot!
  2. cybere

    cybere New Member

    Same issue...


    I am having a similar issue to the above post, however I am using FC5,and have used root, and localhost as my paramaters.

    I have checked passwords are exact, I have checked mysqld is up and running, Firewalls and SELinux are both disabled, but i receive the same errors.

    I used the FC5 how to on a previous installation with zero problems, but this time around, I have missed something, or Im just going crazy.

    I am able to issue the first command with no probs:
    mysqladmin -u root password 'newpswd'

    mysqladmin -h -u root password 'newpswd'

    generates an error.

    Also tried
    mysqladmin -h localhost -u root password 'newpswd'

    Any assistance would be appreciated.
  3. falko

    falko Super Moderator Howtoforge Staff

Share This Page