Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie
Hi there,
There is an issue with role permissions that is being worked on at the moment.
If you are having trouble with access or permissions on regional forums please post here to get access: https://www.boards.ie/discussion/2058365403/you-do-not-have-permission-for-that#latest

MySQL, can't remember password

  • 20-08-2009 4:53pm
    #1
    Registered Users, Registered Users 2 Posts: 555 ✭✭✭


    Hi, I've been spending a few hours trying to figure this one out and I'm loath to uninstall everything and reinstall.

    So I haven't logged into MySQL in a few months and now when I want to log in again, it isn't working. I get a message saying
    mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: YES)'
    

    So I have tried to follow the instructions at http://www.mydigitallife.info/2006/04/23/reset-the-root-password-of-mysql-server/ and http://dev.mysql.com/doc/refman/5.0/en/resetting-permissions.html#resetting-permissions-windows (which are almost the same), and it's not working.

    When I do;
    C:\> C:\xampp\mysql\bin\mysqld-nt –init-file=C:\mysql-init.txt
    
    I get the error message;
    'c:\xampp\mysql\bin\mysqld-nt' is not recognised as an internal or external command, operable program or batch file.
    

    So then I guess it is because I must've installed MySQL with the MySQL Installation Wizard, so I need to do;
    C:\> “C:\Program Files\MySQL\MySQL Server 5.0\bin\mysqld-nt.exe”
    –defaults-file=”C:\Program Files\MySQL\MySQL Server 5.0\my.ini”
    –init-file=C:\mysql-init.txt
    
    but I get the same message.

    Has anyone experienced this before?
    I have read that there something like 'skip grant tables' but I can't figure out exactly how to do that. I'm not an expert using the cmd prompt window.

    Thanks in advance.


Comments

  • Registered Users, Registered Users 2 Posts: 2,236 ✭✭✭techguy


    How complex (strong) do you think your password is likely to be?

    Like do you usually use just alphabet characters and a few numbers or is there some other exotic stuff in it too?

    You could try brute forcing it or using a dictionary attack.


  • Moderators, Music Moderators Posts: 23,363 Mod ✭✭✭✭feylya


    Do a search for the mysqld-nt file on your hard drive. That'll start you off on the right direction


  • Registered Users, Registered Users 2 Posts: 555 ✭✭✭Caryatnid


    techguy wrote: »
    How complex (strong) do you think your password is likely to be?

    Like do you usually use just alphabet characters and a few numbers or is there some other exotic stuff in it too?

    You could try brute forcing it or using a dictionary attack.
    The thing is . . . I actually have it written down and am sure I have the right one . . . but I guess I must be wrong or it would be working . . . . but I don't ever remember changing it as I had no reason to.


  • Registered Users, Registered Users 2 Posts: 555 ✭✭✭Caryatnid


    feylya wrote: »
    Do a search for the mysqld-nt file on your hard drive. That'll start you off on the right direction
    Sorry I don't really know what you mean by that. I can obviously find that file, are you suggesting I should reinstall MySQL again? I don't want to do that, it took me ages to set up. My issue is that when I put in the password I get the error message:
    mysqladmin: connect to server at 'localhost' failed
    error: 'Access denied for user 'root'@'localhost' (using password: YES)'
    
    MySQL is running, it ran fine before. It seems my issue is that I need to reset the password and I just can't figure out how to do that.


  • Moderators, Music Moderators Posts: 23,363 Mod ✭✭✭✭feylya


    No, I mean that the commands you're running to reset the password aren't working because they can't find the MySQL binary. You need to adjust the path to point to the correct binary.


  • Advertisement
Advertisement