Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Results 1 to 15 of 48
  1. #1
    Registered User
    Join Date
    Aug 2004
    Posts
    4

    Default how cPanel is calculating quotas with mysql

    i create 400M
    AS I KNOW it include website+mysql.
    but i see

    Disk usage 200 Megabytes
    SQL Disk usage 200 Megabytes
    Disk space available 200 Megabytes

    it is no include mysql.
    how can i make it include mysql

  2. #2
    Registered User
    Join Date
    Aug 2004
    Posts
    4

    Default

    wrong?
    wrong?
    wrong?

  3. #3
    Registered User
    Join Date
    Sep 2004
    Posts
    1

    Default

    MySQL databases are owned by root (or whatever use the MySQL daemon is running as).

    That's why it's not counted in the user quota.

  4. #4
    Member
    Join Date
    Jul 2003
    Posts
    138

    Default

    is there anyway to fix this??

    I mean all of the db are named username_dbname so surely it should be possible????

  5. #5
    Member
    Join Date
    Aug 2003
    Posts
    12

    Default

    I would also like to know if there is a way to include mysql usage on account usage. If there is no way to do it, is cpanel planning on do something like this on a near future ?

  6. #6
    Member
    Join Date
    Jan 2003
    Posts
    133

    Default

    Quote Originally Posted by cafrale
    I would also like to know if there is a way to include mysql usage on account usage. If there is no way to do it, is cpanel planning on do something like this on a near future ?

    very very very impostant find a solution

  7. #7
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Mar 2004
    Posts
    26

    Thumbs down

    Yes this is a problem.. Have a customer that has filled var because his db's are so huge, larger than his entire account is supposed to be.. but since this quota system still suffers this cpanel doesn't do anything about it.

  8. #8
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    They have. They've given you the option of running /scripts/updatemysqlquota
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  9. #9
    Member
    Join Date
    Aug 2005
    Posts
    49

    Default

    Quote Originally Posted by chirpy
    They have. They've given you the option of running /scripts/updatemysqlquota
    Well, searching the forums was worthwhile.

    Should we set this up in crontab? If so, how often is reasonable? Daily? Weekly? Just before the billing run?

  10. #10
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Personally, I run it daily to be sure that any new d/b's are chowned appropriately. If you ran it weekly or monthly users might get a nasty shock if they've rapidly filled a new d/b.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  11. #11
    Member
    Join Date
    Sep 2003
    Posts
    126

    Default

    Quote Originally Posted by chirpy
    They have. They've given you the option of running /scripts/updatemysqlquota
    Just run /scripts/updatemysqlquota, but mysql still not count into quota.
    How to put mysql space into quota?

  12. #12
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    A couple of possibilities:

    1. Did you wait for the disk cache to expire? (15 minutes, IIRC)

    2. Do you have quotas enabled on the partition that contains /var
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  13. #13
    cPanelBilly
    Guest

    Default

    There is 1 large issue with having the user owning mysql databases. If the user hits disk quota, then mysql fails for the entire server.

    This is why we do not have this enabled by default.

  14. #14
    Super Moderator This forum account has been confirmed by cPanel staff to represent a vendor. chirpy's Avatar
    Join Date
    Jun 2002
    Location
    Go on, have a guess
    Posts
    13,495

    Default

    Indeed. It was nicely illustrated in this thread recently:
    http://forums.cpanel.net/showthread.php?t=46759

    Shame that MySQL haven't considered quota'ing in a shared LAMP environment.
    Jonathan Michaelson

    Need your cPanel servers secured and tuned?
    cPanel Server Configuration, Security, Recovery and Antivirus/AntiSpam Services
    Developers of the most effective (and free) Firewall & Security Solution for cPanel Servers - csf
    http://www.configserver.com

  15. #15
    Member
    Join Date
    Mar 2002
    Posts
    448

    Default

    Quote Originally Posted by cPanelBilly
    There is 1 large issue with having the user owning mysql databases. If the user hits disk quota, then mysql fails for the entire server.

    This is why we do not have this enabled by default.
    Ouch! I've just run /scripts/updatemysqlquota - but now I've read the above, I think I want to 'undo' this. Can I?

    Thanks.
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

+ Reply to Thread
Page 1 of 4 1 2 3 ... LastLast
Similar Threads & Tags
Similar threads

  1. Bandwidth not calculating
    By lblanchardiii in forum cPanel and WHM Discussions
    Replies: 27
    Last Post: 12-25-2010, 04:43 AM
  2. "disk used" only calculating MySQL Disk Space..
    By damainman in forum Database Discussions
    Replies: 1
    Last Post: 05-25-2010, 08:02 AM
  3. "disk used" only calculating MySQL Disk Space..
    By damainman in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-25-2010, 08:02 AM
  4. Cpanel and WHM 11 quotas Hosting x Mail´s x MySQL separate
    By Mentor in forum New User Questions
    Replies: 0
    Last Post: 05-24-2007, 07:14 AM
  5. how cPanel is calculating quotas with mysql.
    By httpwwf in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-29-2004, 07:11 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube