List:General Discussion« Previous MessageNext Message »
From:Paul DuBois Date:June 12 2001 9:45pm
Subject:Re: GRANT annoyance...
View as plain text  
At 5:25 PM -0500 6/12/01, David Simcik wrote:
>Trying to grant super-user level permissions on my root account, but I keep
>getting back an error:
>
>mysql> GRANT ALL PRIVILEGES ON *.* TO root@% IDENTIFIED BY 'user' WITH GRANT
>OPTION;
>ERROR 1064: You have an error in your SQL syntax near '% IDENTIFIED BY
>'user' WITH GRANT OPTION' at line 1
>
>What exactly does the IDENTIFIED BY 'user' statement do anyways? ;-)
>
>I'm hoping this is rather trivial to correct!


It is, but you're reading the error message incorrectly.  Note that it
begins with % and not with IDENTIFIED.  You should write the user@host
part of the GRANT statement like this:  root@'%'

Note the quotes around the % character.

>
>Thanks!
>DTS


-- 
Paul DuBois, paul@stripped
Thread
GRANT annoyance...David Simcik12 Jun
  • Re: GRANT annoyance...Paul DuBois12 Jun
  • RE: GRANT annoyance...Trevor Harris12 Jun
  • Re: GRANT annoyance...Neil Zanella13 Jun
    • Re: GRANT annoyance...Benjamin Pflugmann13 Jun
      • Re: GRANT annoyance...Neil Zanella13 Jun
        • Re: GRANT annoyance...Benjamin Pflugmann13 Jun