Chee-Siong Cheong writes:
> Hi everyone,
> 
> Recently I accidentally modify the user permission of "root" from
> "localhost" to "any" with webmin. After I modified, I can no longer connect
> to the database with my machine, the error is
> 
> ERROR 1045: Access denied for user: '@localhost'
> 
> 
> What can I do to change it back to the original mode? Thanks in advance.


Hi!


Restart your mysqld with '--skip-grant-tables', you will not need a
password, nor will you need to be on the bogus host "any". :)

Once in, correct the problem, and then restart mysqld (without the
'--skip-grant-tables').

Note that this is basically an FAQ. You should have searched the MySQL
Manual and/or the Mailing List Archive before posting:

    http://www.mysql.com/manual.php   (the manual)
    http://lists.mysql.com/           (the list archive)

If you *did* do this before posting, my apologies... It was not very
apparant that you had. :(


Regards,

    Matt

-- 
   __  ___     ___ ____  __ 
  /  |/  /_ __/ __/ __ \/ /   Matt Wagner <[EMAIL PROTECTED]>
 / /|_/ / // /\ \/ /_/ / /__  MySQL AB, http://www.mysql.com/
/_/  /_/\_, /___/\___\_\___/  River Falls, Wisconsin, USA
       <___/       Developer


---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to