Reply to Re: MySQL permissions

Your name:

Reply:


Posted by Murdoc on 10/16/06 08:37

David Quinton wrote:

> On Sat, 14 Oct 2006 04:59:21 +0100, "toffee" <toffee@toffee.com>
> wrote:
>
> > i was wondering if its possible to do something with permissions in MySQL so
> > that a user can only see a restricted set of data in all the tables?
>
> Rescheme your data so that there is a different (set of) table/s for
> each user.
>
> Add a different MySql user for each user.
> Allocate MySql table per user table permissions.
> PHP script to change user/table name/s used for each logged-in user.

In my opinion, that is a lazy (and complicated) method of doing security. There is too
much duplication, and the resulting database schema would be illogical.Not to mention
the fact that a schema change in one of these 'duplicated' tables would require applying
the schema change multiple times.

Also, your solution does not provide an elegant method of hierachical security
(operators, supervisors, managers, etc).

--

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация