Reputation: 3780
I work with a few applications at the company I work for. I would like to know what should be a better choice:
What do you think will be the advantages or drawbacks?
Upvotes: 1
Views: 191
Reputation: 2063
I would go with a user per application. If your company is of any size, you will quickly find yourself spending all your time creating and destroying MySQL users.
It is better to maintain the user logins in a database for authentication on application startup, and then the application it's own connection/user to MySQL (which it also uses to authenticate the user).
Then limit all your security based on the user rights that you design in your user table, instead of relying on MySQL to keep people in check.
Upvotes: 2
Reputation: 57573
I think you'd better creating a user (with few privileges, the ones required and no more) for every application.
Then create (for every application) a superuser) that maintains it.
Upvotes: 2