MySQL Forums
Forum List  »  Docs

Re: MySQL Connector/J Documentation. Error in readme?
Posted by: Nick Roper
Date: August 10, 2004 07:34AM

donal kelly wrote:
> Hi,
>
> should the command be: (removing the apostrophe
> around the username)
> mysql> GRANT ALL PRIVILEGES ON test.* to
> tom@localhost identified by 'toms_pw';
> which creates a username "tom".
>


Yup, or

mysql> GRANT ALL PRIVILEGES ON test.* to 'tom'@'localhost' identified by 'toms_pw';

i.e. if you quote the user name and/or password then do them separately. You only need to use quotes for names that include special characters, but using them for names that don't need them is perfectly acceptable.



--
Nick Roper

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL Connector/J Documentation. Error in readme?
2604
August 10, 2004 07:34AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.