PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Autres forums > Forum Programmation & Conception > comp.databases.mysql > How to create Read Only Table
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
How to create Read Only Table

Réponse
 
LinkBack Outils de la discussion
Vieux 24/09/2007, 11h52   #1
Adam
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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

Thanks in Advance

  Réponse avec citation
Vieux 24/09/2007, 12h13   #2
Captain Paralytic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
>
> 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.

  Réponse avec citation
Vieux 24/09/2007, 12h40   #3
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
>
> 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
==================
  Réponse avec citation
Vieux 24/09/2007, 13h10   #4
-Lost
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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.
  Réponse avec citation
Vieux 24/09/2007, 14h24   #5
Captain Paralytic
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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

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

  Réponse avec citation
Vieux 24/09/2007, 16h05   #6
Good Man
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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

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

  Réponse avec citation
Vieux 24/09/2007, 19h53   #7
Jerry Stuckle
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
>>> 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
==================
  Réponse avec citation
Vieux 24/09/2007, 23h57   #8
Kees Nuyt
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut 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
>
>Thanks in Advance


The archive storage engine, perhaps?
--
( Kees
)
c[_] A chicken is an egg's way of producing more eggs. (#436)
  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 12h52.


Édité par : vBulletin® version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16415 seconds with 16 queries