gloosemo — 2011-10-19T20:26:40-04:00 — #1
I've never worked with databases before.
Generally, is it better to GRANT each person registered to your site some basic privileges and when they log in connect to the database with their login/password, or else is it better to use the same login and password for each user using an account with broader database privileges (but not full privileges), and just verify users by querying a table using the login and password information they logged in with???
Which is more efficient?
Is there major problems with either situation?
Also, what is the general process for validating a users' login and password, with specifics if you can. Do you query a large table of different users looking for a login and password match??
cranial_bore — 2011-10-19T20:53:31-04:00 — #2
Are you asking about granting actual MySQL user account rights to specific users of your site?
If so that's to be avoided. Your PHP scripts will login to MySQL, but not on a user by user basis. Your end users need no direct access to MySQL.
As for them logging into your website they should each have individual logins and your application logic controls what they can do.
gloosemo — 2011-10-20T00:06:16-04:00 — #3
ok, thanks i think i understand.