Perfect Server install - MySQL Password?

Discussion in 'Installation/Configuration' started by ctroyp, Jul 23, 2008.

  1. ctroyp

    ctroyp New Member HowtoForge Supporter

    I made the mistake of using special characters as my MySQL password during the Perfect Server install for CentOS 5.2. I was able to successfully reset my password as Till explains here.

    Unfortunately, when I do:
    mysqladmin -h -u root password mynewpassword
    I get:
    mysqladmin: connect to server at '' failed
    error: 'Access denied for user 'root'@'localhost' (using password: NO)'
    I AM using the correct password as I have reset it 3 times to confirm, yet I still cannot connect.

    Please help...
  2. till

    till Super Moderator Staff Member ISPConfig Developer

    The above command is only used when no password is set. The password mynewpassword is not the current password.

    to change a password, use this command:

    mysqladmin -p -h -u root password mynewpassword

    the command asks then for the current password.
  3. ctroyp

    ctroyp New Member HowtoForge Supporter

    Thanks till for the clarification.

Share This Page