Jump to content

Prevenet user to see Information_schema


angelcool

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 [email protected].%                                                          |

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

| 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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.