MySQL privileges.

Carlis

Senior member
May 19, 2006
237
0
76
I am building an applet to be run on a MySQL database. The applet can be used by anyone who chooses to register on the website. The user can use the applet to generate data that is stored in the database. Now, next time they come around the data should still be there, but other users should NOT be able to access their data.

Now, I see three ways of acquiring this:

1) Create LOTS of databases, one for each user. Seems like that would require a lot of power?

2) Set privileges for specifik tables. Is that even possible?

3) Program the applet so that it 'refuses' to read the tables that the user should not be allowed to view. Does this mean very poor security? I'm not starting a bank, but I don't want it to be very simple to work around...

Are there other alternatives that I haven't considered...?
 

techfuzz

Diamond Member
Feb 11, 2001
3,107
0
76
For each customer who saves/generates data in the database, store their user ID with the records. When they return to the website, only query those records that have their user ID.

techfuzz