Author Topic: MySQL root Password problem (not forgotton)  (Read 166 times)

0 Members and 1 Guest are viewing this topic.

Offline Brian WTopic starter

  • Devotee
  • Gender: Male
  • *face > palm *sip coffee
    • View Profile
MySQL root Password problem (not forgotton)
« on: February 04, 2010, 05:23:49 AM »
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 [
Quote
Warning] Changed Limits: ...

I found a new method using skip-grant-table which allowed me to get in and run
Quote
UPDATE mysql.user SET Password=PASSWORD('MyPassword') WHERE User='root'

which responds
Quote
Query OK, 0 rows affected (0.00 sec )
Rows Matched: 1 Changed: 0 Warnings: 0

Then I've even ran
Quote
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


Code Blog NEW!
Unsolicited commercial email will be read at a cost of $500 per message. Use of my email address implies consent to these terms.

PHP Freaks Forums

« on: »

Tired of these ads? Purchase a supporter subscription to get rid of them.