robb73 Posted April 19, 2007 Share Posted April 19, 2007 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 Quote Link to comment https://forums.phpfreaks.com/topic/47723-grant-privileges/ Share on other sites More sharing options...
gluck Posted April 19, 2007 Share Posted April 19, 2007 You can do the first way. No harm Quote Link to comment https://forums.phpfreaks.com/topic/47723-grant-privileges/#findComment-233648 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.