Current time: 12-24-2024, 04:21 AM Hello There, Guest! (LoginRegister)


Post Reply 
Mysql Database Size -> Disk Usage
Author Message
kvaes Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #1
Mysql Database Size -> Disk Usage
Is the mysql database counted as Disk usage too? Cause users can use the database as a workaround for disk quota's then...
07-27-2007 12:32 AM
Find all posts by this user Quote this message in a reply
BeNe Offline
Moderator
*****
Moderators

Posts: 5,899
Joined: Jan 2007
Reputation: 68
Post: #2
RE: Mysql Database Size -> Disk Usage
I don´t think so. The My-ISAM Files are in other Diretories so i mean that they are not counted. But i´m not sure.

Greez BeNe
07-27-2007 01:01 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kvaes Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #3
RE: Mysql Database Size -> Disk Usage
BeNe Wrote:I don´t think so. The My-ISAM Files are in other Diretories so i mean that they are not counted. But i´m not sure.

Greez BeNe

but... let's say phpMyAdmin is capable of telling the size of a database
ispcp knows which database belongs to which user, so it should be possible?
(long run attempt?) Wink
07-27-2007 01:29 AM
Find all posts by this user Quote this message in a reply
kvaes Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #4
RE: Mysql Database Size -> Disk Usage
http://www.modwest.com/help/kb6-199.html

apparently thru "show table status"
07-27-2007 01:35 AM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #5
RE: Mysql Database Size -> Disk Usage
AFAIR it also checks the disk usage of the mysql data files
07-27-2007 05:44 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #6
RE: Mysql Database Size -> Disk Usage
some time ago i found a possible solution to set a quota for mysql :

http://www.isp-control.net/ispcp/wiki/my...ota_script
07-27-2007 05:50 AM
Visit this user's website Find all posts by this user Quote this message in a reply
kvaes Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #7
RE: Mysql Database Size -> Disk Usage
looks good, but how handle the quota's I guess? shutdown, or more on an administrative note
(give the isp the chance to bill, without downtime for the user)

another thing I was wondering, what about the mailboxes?
is there a way to stop a user from creating an mailbox with a size of N GigaByte?




sorry for the questions, been functionality testing ispcp for my own webhosting
I like it a lot, but I was missing these things
(and I don't know if they are available in the commercial variants, so don't shoot me for that) :-)
07-27-2007 05:55 PM
Find all posts by this user Quote this message in a reply
kvaes Offline
Junior Member
*

Posts: 23
Joined: Jul 2007
Reputation: 0
Post: #8
RE: Mysql Database Size -> Disk Usage
just checked the whishlist, it's on there... (both mysql & mail)
so I guess my questions were posted too soon

going further thru the wishlist:
Are there any specifications on what the billing gui should do? Or is there already development started on that one?
07-27-2007 06:51 PM
Find all posts by this user Quote this message in a reply
raphael Offline
Member
***

Posts: 474
Joined: Apr 2007
Reputation: 8
Post: #9
RE: Mysql Database Size -> Disk Usage
Just verified the mysql quota thing. Currently the check is performed by checking the disk space used by the database data files. There seems to be an other implementation of mysql quota which queries the mysql server, but personally I prefer the former.
There's a hack for VHCS for mail quota: http://vhcs.puuhis.net/wiki/index.php/Ma...lternative

Maybe I could try to do something like that
07-28-2007 04:37 AM
Visit this user's website Find all posts by this user Quote this message in a reply
ephigenie Offline
Project Leader
*******
Administrators

Posts: 1,578
Joined: Oct 2006
Reputation: 15
Post: #10
RE: Mysql Database Size -> Disk Usage
the script i meant which is querying the server is a lot better because it restricts further growing of the database if the quota is exceeded.

And thats what quotas are for Wink

Yeah just checking the database size is nice and take it into account - but
instead of the webspace where the user is limited by proftpd he can grow its database to gigabytes ...
07-28-2007 05:25 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Forum Jump:


User(s) browsing this thread: 1 Guest(s)