does mysql database space inluded in webspace

FijianTribe

Well-Known Member
Jan 30, 2003
69
0
156
Its included. Check the cpanel view, it'll show the customer how much space the database is using.
 

Mindlash

Well-Known Member
Jul 7, 2003
77
0
156
Has anyone written a hack for measuring this?

Is this something that is being worked on now, on the dev side?

I have a potential client with 3 MySQL DB's over 150MB each and was currious as to the space and bandwidth quotas (obviously space doesn't count, but does quota?)

Thanks!

cPanel.net Support Ticket Number:
 

Jeff75

Well-Known Member
Apr 11, 2003
555
0
166
I also have clients who have MySQL databases over 100 MBs with a lot of space taken up on their account.

Please make it so MySQL databases will be counted in the overall disk space amount.

cPanel.net Support Ticket Number:
 

rs-freddo

Well-Known Member
May 13, 2003
828
1
168
Australia
cPanel Access Level
Root Administrator
Just chown the database to the group of the user - then it's counted.
chown mysql.username database -R

cPanel.net Support Ticket Number:
 

Mindlash

Well-Known Member
Jul 7, 2003
77
0
156
With this not create an issue with mysql writing to the tables?

If this works, that's great! ... and simple! .. however having this automated would obviously be the next step :)

cPanel.net Support Ticket Number:
 

casey

Well-Known Member
Jan 17, 2003
2,288
0
191
Originally posted by rs-freddo
Just chown the database to the group of the user - then it's counted.
chown mysql.username database -R

cPanel.net Support Ticket Number:
I think you also have to run
/scripts/updatemysqlquota
every once in a while, too.

cPanel.net Support Ticket Number:
 

rs-freddo

Well-Known Member
May 13, 2003
828
1
168
Australia
cPanel Access Level
Root Administrator
Originally posted by Mindlash
With this not create an issue with mysql writing to the tables?

If this works, that's great! ... and simple! .. however having this automated would obviously be the next step :)

cPanel.net Support Ticket Number:
Since mysql is the owner, it won't affect writing to the tables - you're just changing the group ownership. I have done this on an ensim server and it worked fine - I'm not doing it on cPanel cause i own all the databases.

cPanel.net Support Ticket Number:
 

Jeff75

Well-Known Member
Apr 11, 2003
555
0
166
I think these are great suggestions on how to get around it, but I think cPanel should integrate this so it will automatically calculate MySQL into the overall disk space usage. I'm sure this is something that most cPanel users would like to have.

cPanel.net Support Ticket Number:
 

Juanra

Well-Known Member
Sep 22, 2001
777
0
316
Spain
Originally posted by rs-freddo
Since mysql is the owner, it won't affect writing to the tables - you're just changing the group ownership. I have done this on an ensim server and it worked fine - I'm not doing it on cPanel cause i own all the databases.
Cpanel uses user quotas, not group quotas, so you need to chown them user.mysql and give proper permissions. As mentioned by Casey, /scripts/updatemysqlquota gets it right. You can add it to root's crontab if you wish.

cPanel.net Support Ticket Number: