Jump to content

Recommended Posts

Posted

Is there anyway to set up different security 'levels' for use with PHP in accessing a database? My scripts are working okay but I'd like to be able to use a password and username that doesn't allow for some operations, i.e. drop table LOL ... it seems to be a pretty logical request but I'm darned if I can find any information on setting security levels on the username level.

 

Thanks in advance for any help (*sigh* again)

 

Later,

Paul

Posted

After spending a couple minutes looking through the CPanel and PhpMyAdmin interfaces, it would appear you don't have any control over database users beyond turning on and off access to your databases. I imagine that's because of how MySQL works. If you have enough access to change users specific database permissions, you could probably do it to any user on the system. And considering you're probably on a shared server, that's not exactly a good idea. ;)

Posted

Thanks for the responses folks! after a full night's sleep and allowing the scotch to be absorbed I decided to try something revolutionary ... I looked at the mySQL documentation ;) Lo and behold, there's an SQL command "GRANT" that will do anything I wanted to do :P (insert pic of Paul doing the snoopy happy-dance here) ...

 

Thanks again, I'm sure there will be many more questions to follow as I manage to mangle a perfectly good web-account !

 

Later,

Paul

Posted

;)

Hey, Paul if you screw it up too bad, we can always just reprovision your account and let you start over!

:P

 

"If all else fails, read the directions."

"If all else fails, start over."

"If all else fails, go to bed"

"If all else fails, go to church"

 

....anybody care to add their fav?

:lol:

Lianna

Posted

LOL adding my new favorite:

 

If all else fails, post on the totalchoice forums ;)

 

Thanks again all!

 

Later,

Paul

Posted

"I don't have to know all the answers if I know where to find them."

 

Li

(My Dad says this as he and my mother face off in Trivial Pursuit. Mom kindly reminds him then that it's breaking the rules to use any reference materials. :D )

Join the conversation

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

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

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