homepage Welcome to WebmasterWorld Guest from 54.234.147.84
register, free tools, login, search, subscribe, help, library, announcements, recent posts, open posts,
Subscribe to WebmasterWorld

Home / Forums Index / Code, Content, and Presentation / Databases
Forum Library, Charter, Moderators: physics

Databases Forum

    
Read only mysql tables
Sansovino




msg:4282862
 8:38 am on Mar 17, 2011 (gmt 0)

Hi,

is it possible to set some tables in a mysql database to read only while others are still writable?

Thanks

 

coopster




msg:4282926
 1:00 pm on Mar 17, 2011 (gmt 0)

Welcome to WebmasterWorld, Sansovino.

Have you read through The MySQL Access Privilege System [dev.mysql.com] and Account Management Statements [dev.mysql.com]?

There is a lot of detail regarding database connection, database and table security and user-level security. You may want to start there.

rocknbil




msg:4283062
 3:59 pm on Mar 17, 2011 (gmt 0)

One way is to connect using two users, assign read only privileges to the "public" user, write privileges to the "admin" user.

Sansovino




msg:4304694
 9:21 am on Apr 27, 2011 (gmt 0)

Thanks - I'll try that.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / Databases
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved