Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.