Granted User Cannot Access Database

This is a discussion on Granted User Cannot Access Database within the PHP Language forums, part of the PHP Programming Forums category; Hello all, I'm relatively new to mysql and I'm having some trouble creating a user that can access ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 01-12-2005
spambuster@jam.rr.com
 
Posts: n/a
Default Granted User Cannot Access Database

Hello all,

I'm relatively new to mysql and I'm having some trouble creating a user
that can access a database that I've created.

Here's what I've done:

1. As root, created a database called "tool_competence".
2. As root, created a couple of tables in the tool_competence db.
3. As root, created a user "called tool_comp_user" and flushed
privileges:

mysql> GRANT select, insert, update
-> ON tool_competence.employee_info
-> TO tool_comp_user@"%";

4. As root, checked grants using "show grants for tool_comp_user;" and
it reflects the granted privileges.
5. Logout of mysql and login as tool_comp_user: "mysql -u
tool_comp_user"
6. As tool_comp_user: "use tool_competence;" and I get the following
error:
ERROR 1044 (42000): Access denied for user ''@'[mydomain].com' to
database 'tool_competence'

Does anyone see anything wrong with this process or have any idea what
might be causing my problems?

Thanks in advance for any help,
Bart

Reply With Quote
  #2 (permalink)  
Old 01-13-2005
spambuster@jam.rr.com
 
Posts: n/a
Default Re: Granted User Cannot Access Database

spambuster@jam.rr.com wrote:
> ERROR 1044 (42000): Access denied for user ''@'[mydomain].com' to
> database 'tool_competence'


I realize now that in the above error message, user is ''. Why it did
not recognize the user when I logged in, I don't know. For some reason
it is now recognizing the user correctly and everything is working as I
would expect.

Very wierd because I was very careful about how I was logging in. And
haven't changed the way I was logging in since the problem was
occuring.

Although it appears not to be an issue now, I would gladly accept any
insights into what may have been going on if anyone out there has any
theories.

Thanks,
Bart

Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT +1. The time now is 10:14 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0