Jump to content

MySQL Privileges Per User Signup


imperium2335

Recommended Posts

Hi,

 

I have wondered if just one user should be used (e.g. root) for connecting to the database is the right way of doing things? (which is what I have always done).

 

Would it be better to have a new user created in the privileges section in MySQL and have all operation/table access assigned appropriately for every single user that signs up? I would think that this would give a lot more security but would need a bit more work.

 

What are your thoughts?

Link to comment
https://forums.phpfreaks.com/topic/255351-mysql-privileges-per-user-signup/
Share on other sites

The root user should only be used for administrative purposes. You should already have a general purpose database user/password that only has SELECT, INSERT, UPDATE, and perhaps DELETE privileges that you use in actual applications.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.