Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Access only to a particular database

Status
Not open for further replies.

gharabed

Programmer
Sep 7, 2001
251
US
This is driving my nuts. How do I grant full access on a particular database (all tables) to a particular user. I issued the following command but when I log in as the user and do I "show database" I don't see the database:

grant all on mynewdb.* to 'gregh'@'%';

This way anyplace the user gregh logs in from, the user would have access to mynewdb. However, when gregh logs in from localhost, and does a "show databases", only the "test" database shows up. Am I doing something wrong?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top