Find the answer to your Linux question:
Results 1 to 3 of 3
Hi folks, Ubuntu 910 64bit # mysqladmin -u root p'oldpasswd' password newpasswd Code: mysqladmin: connect to server at 'localhost' failed error: 'Access denied for user 'root'@'localhost' (using password: NO)' However ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,804

    mysql - fail to change root password


    Hi folks,

    Ubuntu 910 64bit

    # mysqladmin -u root p'oldpasswd' password newpasswd
    Code:
    mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: NO)'
    However with the oldpasswd I can login mysql.

    $ mysql -u root -p
    Enter password: oldpasswd
    ...
    mysql >


    Please help. TIA


    B.R.
    satimis

  2. #2
    Just Joined! sathiya's Avatar
    Join Date
    Feb 2008
    Location
    Bangalore, India
    Posts
    97
    change the password using the other methods then: How To Change MySQL Root Password

  3. #3
    Linux Guru
    Join Date
    Sep 2004
    Posts
    1,804

    Solved

    Quote Originally Posted by sathiya View Post
    change the password using the other methods then: How To Change MySQL Root Password
    Hi sathiya,

    Thanks for your advice and URL

    Problem solved. I left out "-" before p'oldpasswd'

    satimis

Posting Permissions

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