Re: Database Quotas

2010-05-21 Thread Tim Gustafson
m thinking that this would be implemented at the storage engine level, and probably just for MyISAM tables. Just my $0.02. Based on the reply from Johnny Withers, I'm thinking that just using ZFS file system quotas will work for me, but it does seem that this would be a handy feature to ha

RE: Database Quotas

2010-05-21 Thread Martin Gainty
mysql@lists.mysql.com > Subject: Re: Database Quotas > > > if MYSQL attempts to insert more bytes than what is available > > on disk you will get 28 ENOSPC No space left on device > > http://dev.mysql.com/doc/refman/5.0/en/operating-system-error-codes.html > >

Re: Database Quotas

2010-05-21 Thread Johnny Withers
I ran out of space on a large, busy production database just a few weeks ago. All tables are InnoDB and I experienced zero data loss. It was actually running out of space for almost 2 weeks after a review of the log file. As temp files were deleted transactions were able to continue until all but

Re: Database Quotas

2010-05-21 Thread Tim Gustafson
> if MYSQL attempts to insert more bytes than what is available > on disk you will get 28 ENOSPC No space left on device > http://dev.mysql.com/doc/refman/5.0/en/operating-system-error-codes.html Does it figured that out before it tries to write a record? So, if I have 2KB left on the device an

RE: Database Quotas

2010-05-21 Thread Martin Gainty
nt facilement être sujets à la manipulation, nous ne pouvons accepter aucune responsabilité pour le contenu fourni. > Date: Thu, 20 May 2010 18:09:42 -0700 > From: t...@soe.ucsc.edu > To: noel.but...@ausics.net > CC: mysql@lists.mysql.com > Subject: Re: Database Quotas > > >

Re: Database Quotas

2010-05-20 Thread Tim Gustafson
ason > or another, but of all the ways to maintain a constant database size, > quotas are one of the worst. We have a shared mySQL server that is used by web sites, research projects, admin staff and graduate students. None of those types of people are sensitive to database storage restr

Re: Database Quotas

2010-05-20 Thread Shawn Green
Tim Gustafson wrote: Hi, I'm not sure if this is already an open issue or not - a Google search resulted in various discussions but I didn't find any open support/feature request. It would be really handy if during the "create database" statement, one could specify something like: CREATE DAT

Re: Database Quotas

2010-05-20 Thread Colin Streicher
t, generally speaking, putting a quota on an entire database means you are probably doing it wrong. In a perfect world, it seems to be that building a database which can maintain a size without constant mothering would be best, this doesn't always happen for one reason or another, but of all

Re: Database Quotas

2010-05-20 Thread Tim Gustafson
> Use postgres, you can assign tablespaces to a partition > of the size you want. When it gets full, writes are > refused. I'm not sure how nicely that is handled ( in > terms of error output ) but the advantage is that Pg is > ACID compliant, so you won't lose data. Wow, that's the first time I'

Re: Database Quotas

2010-05-20 Thread Colin Streicher
ore than 10GB (in this > > example). > > Yes it would be nice. But the best current way is to assign a user to > the database and use system quotas. > > > limit available space in the mySQL database folders, but I've read > > commentary about how that can corrupt

Re: Database Quotas

2010-05-20 Thread Tim Gustafson
> Ummm, you're going to have the same problem either way when > the limit is reached, be it a MySQL quota or system quota, > if its full, its full. Yes, but mySQL could return a more friendly "you're out of space" message and not corrupt the data files if a given statement would cause the databas

Re: Database Quotas

2010-05-20 Thread Noel Butler
if during the "create database" statement, one could > specify something like: > > CREATE DATABASE foo QUOTA=10G; > > to limit the entire database being created to no more than 10GB (in this > example). > Yes it would be nice. But the best current way is to assign a u

Database Quotas

2010-05-20 Thread Tim Gustafson
Hi, I'm not sure if this is already an open issue or not - a Google search resulted in various discussions but I didn't find any open support/feature request. It would be really handy if during the "create database" statement, one could specify something like: CREATE DATABASE foo QUOTA=10G; t

Re: disk quotas in mysql

2005-04-13 Thread Gleb Paharenko
Hello. No. Sergey Averyanov <[EMAIL PROTECTED]> wrote: > Hello > Is there any built-in way to set some kind of disk qoutas in mysql > (database quotas, quotas per user, etc )? > > > -- For technical support contracts, goto https://order.mysql.com/?

disk quotas in mysql

2005-04-13 Thread Sergey Averyanov
Hello Is there any built-in way to set some kind of disk qoutas in mysql (database quotas, quotas per user, etc )? -- Best regards, Sergey Averyanov mailto:[EMAIL PROTECTED] -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To

Re: User quotas, how?

2004-01-14 Thread Yves Goergen
On Tuesday, January 13, 2004 11:52 PM CET, Anders Norrbring wrote: > Hiya all! > > I'm curious about if there's a simple way to manage user quotas in a > MySQL database? F.x. user one can have 10MB data in the database and > user two can have a maximum of 5MB? > >

User quotas, how?

2004-01-13 Thread Anders Norrbring
Hiya all! I'm curious about if there's a simple way to manage user quotas in a MySQL database? F.x. user one can have 10MB data in the database and user two can have a maximum of 5MB? Anders Norrbring -- MySQL General Mailing List For list archives: http://lists.mysql.co

User quotas, how?

2004-01-12 Thread Anders Norrbring
Hiya all! I'm curious about if there's a simple way to manage user quotas in a MySQL database? F.x. user one can have 10MB data in the database and user two can have a maximum of 5MB? Anders Norrbring -- MySQL General Mailing List For list archives: http://lists.mysql.co

Re: Database quotas?

2003-09-25 Thread Yves Goergen
Another way I was thinking about by now is to periodically calculate the database's size and, if over quota, revoke the user's INSERT, UPDATE rights and so on. It's not real-time, too, but maybe a little more friendly since I don't know how MySQL behaves when running against fs quota writing to a f

Re: Database quotas?

2003-09-24 Thread Steven Adams
25, 2003 3:11 AM Subject: Re: Database quotas? > On Wed, Sep 24, 2003 at 03:18:07PM +1000, [EMAIL PROTECTED] wrote: > > Yeah but when they make a nwe table, it will be owned by root.root wont it? > > First, don't run MySQL as root. > > Second, yes. It will be owned by wh

Re: Database quotas?

2003-09-24 Thread Jeremy Zawodny
On Wed, Sep 24, 2003 at 03:18:07PM +1000, [EMAIL PROTECTED] wrote: > Yeah but when they make a nwe table, it will be owned by root.root wont it? First, don't run MySQL as root. Second, yes. It will be owned by whoever creates it. But a periodic cron job to chorwn them appropriately would be a r

Re: Database quotas?

2003-09-23 Thread steve
Yeah but when they make a nwe table, it will be owned by root.root wont it? > On Wed, Sep 24, 2003 at 01:38:43PM +1000, [EMAIL PROTECTED] wrote: >> Hey guys, >> >> is it possible to bind some databases to a userid so u can do disk >> quotas on them, or limit how big

Re: Database quotas?

2003-09-23 Thread Jeremy Zawodny
On Wed, Sep 24, 2003 at 01:38:43PM +1000, [EMAIL PROTECTED] wrote: > Hey guys, > > is it possible to bind some databases to a userid so u can do disk quotas > on them, or limit how big a db can be? chown the files. Just make sure they're group-wrtiable so that MySQL can write t

Database quotas?

2003-09-23 Thread steve
Hey guys, is it possible to bind some databases to a userid so u can do disk quotas on them, or limit how big a db can be? -- MySQL General Mailing List For list archives: http://lists.mysql.com/mysql To unsubscribe:http://lists.mysql.com/[EMAIL PROTECTED]

Re: quotas

2003-07-22 Thread Paul Chvostek
gs/user2/data > > > > > > etc. Then any table the user creates in their database will end up > > > in their data dir. > > > > That'll put the files in the right directories, but if the quotas are > > based on file ownership, it won't l

Re: quotas

2003-07-21 Thread Yves Goergen
]> An: <[EMAIL PROTECTED]> Gesendet: Montag, 21. Juli 2003 06:22 Betreff: quotas > Hi, > > I am a Redhat user. Presently using RH 7.3 and mysql 3.23. I am doing some > web hosting services. I have system quota installled and enable. Is there a > way, to tell mysql to h

Re: quotas

2003-07-20 Thread Dan Nelson
user2/data > > > > etc. Then any table the user creates in their database will end up > > in their data dir. > > That'll put the files in the right directories, but if the quotas are > based on file ownership, it won't limit the users' database size, > si

Re: quotas

2003-07-20 Thread Paul Chvostek
nd up in > their data dir. That'll put the files in the right directories, but if the quotas are based on file ownership, it won't limit the users' database size, since mysql wants the tables and indices to be owned by the 'mysql' user. After some searching and cogitating

Re: quotas

2003-07-20 Thread Dan Nelson
In the last episode (Jul 21), LaCraze said: > I am a Redhat user. Presently using RH 7.3 and mysql 3.23. I am doing > some web hosting services. I have system quota installled and enable. > Is there a way, to tell mysql to have individual databases in my > user's directories instead of /var/lib/mys

quotas

2003-07-20 Thread LaCraze
Hi, I am a Redhat user. Presently using RH 7.3 and mysql 3.23. I am doing some web hosting services. I have system quota installled and enable. Is there a way, to tell mysql to have individual databases in my user's directories instead of /var/lib/mysql/ ? For example user1 has a web space in /ho

Re: MySQL a quotas?

2002-09-30 Thread Jeremy Zawodny
On Mon, Sep 30, 2002 at 10:24:42AM -0400, Bill Leonard wrote: > on 9/30/02 9:47 AM, Victoria Reznichenko at [EMAIL PROTECTED] > wrote: > > > It's not a so good decision and not suitable if database contains > > InnoDB tables, but you can't limit database size only with MySQL. > > Is this a plann

Re: MySQL a quotas?

2002-09-30 Thread Bill Leonard
on 9/30/02 9:47 AM, Victoria Reznichenko at [EMAIL PROTECTED] wrote: > It's not a so good decision and not suitable if database contains > InnoDB tables, but you can't limit database size only with MySQL. Is this a planned feature anywhere on the MySQL roadmap for 4.x? A database size quota?

re: re: MySQL a quotas?

2002-09-30 Thread Victoria Reznichenko
ut with no success. >> >> JM> Can someone help me with this problem? >> >> You can do it using disk quotas. IM> Just out of curiosity, how will the user know whether the disk was full (quota IM> exceeded) or has other errors occurred when he/she, for example, inse

re: MySQL a quotas?

2002-09-30 Thread Iikka Meriläinen
gt; JM> Can someone help me with this problem? > > You can do it using disk quotas. Just out of curiosity, how will the user know whether the disk was full (quota exceeded) or has other errors occurred when he/she, for example, inserts a row that doesn't fit into the quota? After re

re: MySQL a quotas?

2002-09-30 Thread Victoria Reznichenko
Jiri, Sunday, September 29, 2002, 11:18:51 PM, you wrote: JM> I'm solving problem how to set up quota on MySQL db. I've look for that JM> in mailing lists and docummentation but with no success. JM> Can someone help me with this problem? You can do it using disk quotas.

MySQL a quotas?

2002-09-29 Thread Jiri Musil
Hi, I'm solving problem how to set up quota on MySQL db. I've look for that in mailing lists and docummentation but with no success. Can someone help me with this problem? Thanks -- jiri musil [EMAIL PROTECTED], icq# 125282227 --

Re: feature request: privileged connection quotas

2001-12-12 Thread Benjamin Pflugmann
Hi. MySQL already reserves one connection to users with the process privilege. So assure that common clients don't have the process privilege and you connect with one that has it and you are done. This is documented here (found no other place): http://www.mysql.com/doc/T/o/Too_many_connections.h

feature request: privileged connection quotas

2001-12-12 Thread Martin Waite
Hi, I'd like to be able to reserve some connections to the MySQL server for emergencies - eg. someone issued a slow query and locked out several hundred updates from several hundred other connections. Currently in this sort of situation, it is possible to completely run out of connections and

Re: Managing user db's (quotas)

2001-07-29 Thread Jeremy Zawodny
On Sun, Jul 29, 2001 at 03:42:41PM -0600, Chris Cameron wrote: > I sent this before, but it never made it.. > > Does anyone here have any advice on controlling the size of user > databases? There's not a lot you can do about it today, short of (1) symlinks onto a filesystem

Managing user db's (quotas)

2001-07-29 Thread Chris Cameron
I sent this before, but it never made it.. Does anyone here have any advice on controlling the size of user databases? I've heard talk of symlinks before, anyone had any luck with that? Thanks, Chris - Before posting, please

mysql hosting. how to do with quotas.

2001-06-01 Thread Dennis S.Davidoff
does anyone setting up mysql with quotas?? i need it for hosting. -- %whois -R NULL-RIPN PGP: http://null.magelan.ru/null.asc Pager: +7 095 974-0003, #30369 - Before posting, please check: http://www.mysql.com

Mysql hosting (quotas)

2001-05-30 Thread Dennis S.Davidoff
Hi. Anyone realized subj? I have quotas on /home. And I want to let my users using mysql... but what about quotas? :( Mysql works under mysql and all tables creates under owner *mysql* :-\ Any tips? P.s. uname -a: OpenBSD ns 2.9 NS#2 i386 -- %whois -R NULL-RIPN PGP: http://null.magelan.ru

Enforcing quotas with MySQL?

2001-03-15 Thread Jose de Leon
Does MySQL allow either user or group quotas to be enforced per database? Thanks, Jose - Before posting, please check: http://www.mysql.com/manual.php (the manual) http://lists.mysql.com/ (the list archive

Re: Once again... quotas...

2001-02-21 Thread Mikel King
At the company I work for we decided to try and implement reverse quotas. rather than limit said user to x we keep track of their usage and compare it to x. If they should happen to exceed that values then they are billed for the overage. It's very muhc like how UU bills us on our bandwidt

Re: Once again... quotas...

2001-02-21 Thread Tristan 'Minty' Colgate
Cheers, Ive subscribed and resent the email. On Tue, Feb 20, 2001 at 10:49:36PM -0800, Jeremy D. Zawodny wrote: > On Tue, Feb 20, 2001 at 04:19:27PM +, Tristan 'Minty' Colgate wrote: > > > > I have recently been asked to implement per database quotas for > >

Re: Once again... quotas...

2001-02-20 Thread Jeremy D. Zawodny
On Tue, Feb 20, 2001 at 04:19:27PM +, Tristan 'Minty' Colgate wrote: > > I have recently been asked to implement per database quotas for > mysql for a large scale shared webhosting environmnet, from the > lists it seems pretty obvious that mysql cant achieve this at

Once again... quotas...

2001-02-20 Thread Tristan 'Minty' Colgate
Hi There, I have recently been asked to implement per database quotas for mysql for a large scale shared webhosting environmnet, from the lists it seems pretty obvious that mysql cant achieve this at the moment (without using filesystem quotas), file system quotaing is pretty awkward with our