I'm trying to make my once homey website able to take more than two users. Is it scalable to make a new MySQL user for each person that registers with my website, running
CREATE USER $userName [IDENTIFIED BY [PASSWORD] '$userPass']
each time someone registers? I would then set up mysql_connect()
calls in their name.
Alternatively, are there benefits/caveats to doing something like
CREATE USER genericSiteUser [IDENTIFIED BY [PASSWORD] 'sitePass']
and just putting $userName
in a column to keep track of who left what comment, etc? Or is there a third way of doing it better than both of these?