Jump to content

MySQL root Password problem (not forgotton)


Brian W

Recommended Posts

Windows Server 2007, MySQL 5.1

 

I installed MySQL several days ago, 3 days ago I tried signing in as root@localhost and I was denied using the same password I had used before. I found some help on resetting my password via init-file which worked. Again, yesterday the same password again stopped working. I tried the same technique with init-file to reset the root password, but I get a message [

Warning] Changed Limits: ...

I found a new method using skip-grant-table which allowed me to get in and run

UPDATE mysql.user SET Password=PASSWORD('MyPassword') WHERE User='root'

which responds

Query OK, 0 rows affected (0.00 sec )

Rows Matched: 1 Changed: 0 Warnings: 0

Then I've even ran

flush privileges;

 

In CMD: "NET Stop MySQL"

In CMD: "NET Start MySQL" **this time without skip-grant-table

 

For my example, I would expect to be able to sign in using password "MyPassword", but IT DOESN'T, I'm denied.

 

Please advise

Link to comment
Share on other sites

  • 5 months later...
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.