Jump to content

Grant privileges


robb73

Recommended Posts

Just wanted to check a couple of things.

 

I have a simple database where SELECT is required on all tables and INSERT on only one table.

 

Would the the right way to do this be with two GRANT statements:

 

GRANT SELECT ON database.* TO 'user'@'localhost' IDENTIFIED BY 'password';

 

GRANT INSERT ON database.table TO 'user'@'localhost' IDENTIFIED BY 'password';

 

 

My second question is GRANT ALL is specified as granting all simple privileges, I'm struggling to find a list of these on the mysql website.

 

Rob

Link to comment
https://forums.phpfreaks.com/topic/47723-grant-privileges/
Share on other sites

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.