Unix Technical Forum

How to create Read Only Table

This is a discussion on How to create Read Only Table within the MySQL forums, part of the Database Server Software category; --> Hello All, I want to create a table read only that it should not be alter through query, i ...


Go Back   Unix Technical Forum > Database Server Software > MySQL

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 02-28-2008, 10:27 AM
Adam
 
Posts: n/a
Default How to create Read Only Table

Hello All,

I want to create a table read only that it should not be alter through
query, i will manually add some sensitive data in the table. Is it
possible in MySql to create a table read only?

Please Help

Thanks in Advance

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 02-28-2008, 10:27 AM
Captain Paralytic
 
Posts: n/a
Default Re: How to create Read Only Table

On 24 Sep, 11:52, Adam <srian...@gmail.com> wrote:
> Hello All,
>
> I want to create a table read only that it should not be alter through
> query, i will manually add some sensitive data in the table. Is it
> possible in MySql to create a table read only?
>
> Please Help
>
> Thanks in Advance


If it was possible to create a table that was read only, ten you would
not be able to manually add your data!

You can create a table and only publish access as a VIEW.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 02-28-2008, 10:27 AM
Jerry Stuckle
 
Posts: n/a
Default Re: How to create Read Only Table

Adam wrote:
> Hello All,
>
> I want to create a table read only that it should not be alter through
> query, i will manually add some sensitive data in the table. Is it
> possible in MySql to create a table read only?
>
> Please Help
>
> Thanks in Advance
>


No, but you can take the insert, update and delete privileges away from everyone
else.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 02-28-2008, 10:27 AM
-Lost
 
Posts: n/a
Default Re: How to create Read Only Table

Response from Jerry Stuckle <jstucklex@attglobal.net>:

> Adam wrote:
>> Hello All,
>>
>> I want to create a table read only that it should not be alter
>> through query, i will manually add some sensitive data in the
>> table. Is it possible in MySql to create a table read only?

>
> No, but you can take the insert, update and delete privileges away
> from everyone else.


If using Windows you could always edit the properties of the database
via policies or simply right-click the file and choose "Read-only."

The smart choice however, irregardless of OS is what Mr. Stuckle
suggested.

Just like administrator accounts and guest accounts. You do not
change the properties of EVERY file (which would lead to having
duplicates or constant updating), instead you limit the access of an
account.

--
-Lost
Remove the extra words to reply by e-mail. Don't e-mail me. I am
kidding. No I am not.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 02-28-2008, 10:27 AM
Captain Paralytic
 
Posts: n/a
Default Re: How to create Read Only Table

On 24 Sep, 12:40, Jerry Stuckle <jstuck...@attglobal.net> wrote:
> Adam wrote:
> > Hello All,

>
> > I want to create a table read only that it should not be alter through
> > query, i will manually add some sensitive data in the table. Is it
> > possible in MySql to create a table read only?

>
> > Please Help

>
> > Thanks in Advance

>
> No, but you can take the insert, update and delete privileges away from everyone
> else.
>
> --
> ==================
> Remove the "x" from my email address
> Jerry Stuckle
> JDS Computer Training Corp.
> jstuck...@attglobal.net
> ==================


But isn't this at a database rather than at a table level?

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 02-28-2008, 10:27 AM
Good Man
 
Posts: n/a
Default Re: How to create Read Only Table

Captain Paralytic <paul_lautman@yahoo.com> wrote in
news:1190640272.402040.139170@19g2000hsx.googlegro ups.com:

> On 24 Sep, 12:40, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> Adam wrote:
>> > Hello All,

>>
>> > I want to create a table read only that it should not be alter
>> > through query, i will manually add some sensitive data in the
>> > table. Is it possible in MySql to create a table read only?

>>
>> > Please Help

>>
>> > Thanks in Advance

>>
>> No, but you can take the insert, update and delete privileges away
>> from everyone else.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================

>
> But isn't this at a database rather than at a table level?


Nope... I'd imagine it's much like

REVOKE insert,delete,update ON mydatabase.mytable FROM username

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 02-28-2008, 10:28 AM
Jerry Stuckle
 
Posts: n/a
Default Re: How to create Read Only Table

Captain Paralytic wrote:
> On 24 Sep, 12:40, Jerry Stuckle <jstuck...@attglobal.net> wrote:
>> Adam wrote:
>>> Hello All,
>>> I want to create a table read only that it should not be alter through
>>> query, i will manually add some sensitive data in the table. Is it
>>> possible in MySql to create a table read only?
>>> Please Help
>>> Thanks in Advance

>> No, but you can take the insert, update and delete privileges away from everyone
>> else.
>>
>> --
>> ==================
>> Remove the "x" from my email address
>> Jerry Stuckle
>> JDS Computer Training Corp.
>> jstuck...@attglobal.net
>> ==================

>
> But isn't this at a database rather than at a table level?
>


Nope, you can do it at the table level, also. Just not row or column.

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 02-28-2008, 10:28 AM
Kees Nuyt
 
Posts: n/a
Default Re: How to create Read Only Table

On Mon, 24 Sep 2007 03:52:56 -0700, Adam <sriansri@gmail.com>
wrote:

>Hello All,
>
>I want to create a table read only that it should not be alter through
>query, i will manually add some sensitive data in the table. Is it
>possible in MySql to create a table read only?
>
>Please Help
>
>Thanks in Advance


The archive storage engine, perhaps?
--
( Kees
)
c[_] A chicken is an egg's way of producing more eggs. (#436)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 03:05 PM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com