Jump to content

Recommended Posts

[quote author=DaveLinger link=topic=99529.msg391983#msg391983 date=1152113100]
we're having a problem somewhere and our configuration table keeps getting changed. Is there a way in MySQL to LOCK a table so it cannot be changed unless it is UN LOCKED?

Thanks!
[/quote]

the best way to do that is to create the configuration table with an administrative account, and don't grant update rights to the user that the web application is using. that way, you can't "accidentally" or in any other way update the table without manually logging in with the database administrator account and changing them.
[quote author=DaveLinger link=topic=99529.msg392007#msg392007 date=1152115944]
but can users still retrieve data from it with a normal non admin account?
[/quote]

Sure, read the manual section on GRANT usage.  You'll see what types of permissions can be granted to users.  You'd probably want an administrative account with GRANT ALL, but only SELECT permissions for a normal web user.
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.