LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 08-08-2005, 05:33 PM   #1
amadkow
Member
 
Registered: May 2004
Location: CA, USA
Posts: 58

Rep: Reputation: 15
limiting users sql databases


I have been looking around for a good method to limit how large a users sql data base can be. Would it be posible to put a user quota on the / then chown the db to that user? The only problem I see with that is I would have to set up a script to check the permissions on their database every once in a while. Does any one know of any better sollutions or methods to this?
 
Old 08-09-2005, 11:05 AM   #2
fouldsy
Senior Member
 
Registered: Jan 2002
Location: St Louis, MO
Distribution: Ubuntu
Posts: 1,284

Rep: Reputation: 47
I don't know of any built-in MySQL function to limit database size, the method I've used in the past is as you mention - create a db, set owner + group for the user concerned, then specify the file quota. Works well, the same way disk quotas for home drives work. When the db reaches it limits, it stops any further data adding, which can be a bugger depending on what your end users are utilising the database for!
 
  


Reply



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Default databases in Postgre SQL redhatrosh Linux - Software 6 11-18-2005 06:33 AM
Limiting Users Obie Linux - Security 6 05-29-2004 05:01 PM
Sql databases CurlyMo Linux - General 5 02-12-2003 04:31 AM
Limiting users RedHatter Linux - Security 7 08-30-2002 05:03 AM
limiting users access iquadri1 Linux - Networking 1 09-04-2001 01:23 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 11:39 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration