RE: Database Quotas

2010-05-21 Thread Martin Gainty
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 Ummm, you're going to have the same problem either way when

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 and

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 Martin Gainty
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 Does it figured that out before it tries to write a record? So, if I

Re: Database Quotas

2010-05-21 Thread Tim Gustafson
i guess my thinking is more along the lines of implementing a lustre interface I'm sure that I'm vastly over-simplifying this, but I was thinking something along the lines of: 1. Assemble the data being written, calculate its length 2. Check for any free pages in the database file, and use

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

Re: Database Quotas

2010-05-20 Thread Noel Butler
On Thu, 2010-05-20 at 16:27 -0700, 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

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

Re: Database Quotas

2010-05-20 Thread Colin Streicher
On May 20, 2010 08:32:56 pm Noel Butler wrote: On Thu, 2010-05-20 at 16:27 -0700, 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

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

Re: Database Quotas

2010-05-20 Thread Colin Streicher
On May 20, 2010 09:55:41 pm Tim Gustafson wrote: 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

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

Re: Database Quotas

2010-05-20 Thread Tim Gustafson
First, 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

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

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

Re: Database quotas?

2003-09-24 Thread Steven Adams
Its not, i ment to say mysql user. A cron will work, but it wont be up-to-date.. hmm, need to research it a bit more. - Original Message - From: Jeremy Zawodny [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Sent: Thursday, September 25, 2003 3:11 AM Subject: Re: Database

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: 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 to 'em. -- Jeremy D.

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 a db can be? chown the files. Just