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
Subject
Views
Written By
Posted
4336
August 10, 2004 02:17AM
Re: MySQL Connector/J Documentation. Error in readme?
2648
August 10, 2004 07:34AM
2879
October 18, 2004 09:16AM
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.