Jump to content

Recommended Posts

I am running MySQL 5.0.67, I want to grant all privileges to a user for a certain database, but when i run the following command, it also allows the user to access information_schema.

 

grant all on products.* to productsuser@'10.10.10.%' identified by 'letmein';

 

Thiese are the grants given by the above command

 

mysql> show grants for  productsuser@'10.10.10.%';

+------------------------------------------------------------------------------------------+

| Grants for paylessdb@10.10.10.%                                                          |

+------------------------------------------------------------------------------------------+

| GRANT USAGE ON *.* TO 'productsuser'@'10.10.10.%' IDENTIFIED BY PASSWORD '032c41e8435273a7' |

| GRANT ALL PRIVILEGES ON `products`.* TO 'productsuser'@'10.10.10.%'                        |

+------------------------------------------------------------------------------------------+

2 rows in set (0.00 sec)

 

All I want is give all edit/view  privileges to a user for the given database' tables  only.

 

Thank you.

Link to comment
https://forums.phpfreaks.com/topic/217118-prevenet-user-to-see-information_schema/
Share on other sites

Perhaps only INSERT,UPDATE and DELETE.

 

...but my point is to prevent user from viewing information_schema.

 

 

When I connect with the account productsuser (using SQLYog), the GRANT command lets me view the information_chema table.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.