Jump to content

Recommended Posts

Should I be using a different mysql connection for users visiting the page. For example, just give them SELECT access?

 

Right now I'm just using 1 connection which is the admin user with all grants.

 

I haven't made a members area yet but when I do new member accounts will only be grated with SELECT and UPDATE.

 

I don't recall having to config 2 connection types when installing php/mysql scripts in the past but just want to make sure.

Link to comment
https://forums.phpfreaks.com/topic/237835-question-about-mysql-connections/
Share on other sites

You don't need to give each user a personalized MySQL user. It's more wasteful than anything.

 

Basically everything you should ever need to do is a SELECT, INSERT, UPDATE, or DELETE. Restrict the account to just those.

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.