![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
Is there a way to limit the database size under Windows? |
#3
| |||
| |||
|
|
John Dalberg wrote: Is there a way to limit the database size under Windows? Sorry, no, from what I can tell, MySQL does not seem to have any feature to enforce a limit on the database size. Some people suggest using disk quota enforcement, but quota systems are often enforced per-volume, not per file or per directory. If you need to make a separate partition per database, you might as well make the partition the size of their quota, and let the volume run out of space as a means to enforce the quota. But that is also difficult because MySQL only uses one directory to store databases (you might be able to get around this by creating shortcuts, but this is starting to sound more and more difficult to maintain). Another person suggested monitoring database size and if it exceeds the limit, revoke UPDATE and INSERT privileges from the user. But this monitor would have to be constant, and is no guarantee that they won't fill up your disk before you can enforce the quota. I think another way to achieve it is through policy, not technology. If you're doing this to allow paying customers to create database, tell them they have some reasonable rate if they stay within their quota, but the rate goes up a hundredfold for database space they use in excess of their quota. Then let them worry about enforcement! ;-) Actually, I'm kidding. I know this would not be acceptable to paying customers. The only other suggestion I can make is to use a different RDBMS product that does provide this feature. For example, (choke) MS SQL Server. |
#4
| |||
| |||
|
|
I am planning to offer free hosting with MySQL and the fact that anyone can create an account, create a MySQL database, run an insert until the database size fills the partition and leaves is disheartening. ... The MySQL designers didn't think this could be a big problem?? |
#5
| |||
| |||
|
|
John Dalberg wrote: I am planning to offer free hosting with MySQL and the fact that anyone can create an account, create a MySQL database, run an insert until the database size fills the partition and leaves is disheartening. ... The MySQL designers didn't think this could be a big problem?? Normally you wouldn't give access to strangers to create such objects on your computers. |
|
I am suddenly more concerned with asking what measures you are taking to prevent spammers from creating accounts, sending a few billion emails, and then closing the account. |
#6
| |||
| |||
|
|
There are also other security measures involved. |
![]() |
| Thread Tools | |
| Display Modes | |
| |