MySQL Forums
Forum List  »  Docs

Re: MySQL Connector/J Documentation. Error in readme?
Posted by: Mike Hillyer
Date: October 18, 2004 09:16AM

You didn't completely read the documentation you quoted:

> GRANT ALL PRIVILEGES ON [dbname].* to
> '[user]'@'[hostname]' identified by
> '[password]'
>
> replacing [dbname] with the name of your database, [user]
> with the user name, [hostname] with the host that MySQL
> Connector/J will be connecting from, and [password] with the
> password you want to use.

Note the quotes areound the username and the quotes around the host?

So the correct GRANT is:

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

Mike Hillyer, Technical Writer
MySQL AB, www.mysql.com
Office: +1 403-380-6535

Blog: http://www.openwin.org/mike

"The Open Source movement has become a major force across the software industry, and MySQL is the world's most popular open source database."
--Fortune Magazine

Options: ReplyQuote


Subject
Views
Written By
Posted
Re: MySQL Connector/J Documentation. Error in readme?
2846
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.