Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member sinys_85's Avatar
    Join Date
    Jan 2010
    Posts
    6

    Default MySQL DB size shows 0 Mb in cPanel

    Hello.
    Yesterday I have a some problem. When I logged to my cPanel >> Databases >> MySQL databases I see that the size all of my DB is show"n by 0 Mb
    It"s wrong and I have found a fix for that.

    1) Edit /var/cpanel/cpanel.config

    Change:

    disk_usage_include_sqldbs=0

    to

    disk_usage_include_sqldbs=1

    Then run the following:

    /scripts/update_db_cache

    This may take a few minutes if you have a ton of users with databases, but after this, you should see the database disk usage show up accurately in cPanel.

  2. #2
    Registered User
    Join Date
    Jan 2011
    Posts
    4

    Thumbs down Re: MySQL DB size shows 0 Mb in cPanel

    Quote Originally Posted by sinys_85 View Post
    Hello.
    Yesterday I have a some problem. When I logged to my cPanel >> Databases >> MySQL databases I see that the size all of my DB is show"n by 0 Mb
    It"s wrong and I have found a fix for that.

    1) Edit /var/cpanel/cpanel.config

    Change:

    disk_usage_include_sqldbs=0

    to

    disk_usage_include_sqldbs=1

    Then run the following:

    /scripts/update_db_cache

    This may take a few minutes if you have a ton of users with databases, but after this, you should see the database disk usage show up accurately in cPanel.

    Issue is not fixed
    Still I am getting the same error while creating a new database.

    Regards,
    Sofia

  3. #3
    cPanel Product Evangelist Infopro's Avatar
    Join Date
    May 2003
    Location
    Pennsylvania
    Posts
    7,893
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: MySQL DB size shows 0 Mb in cPanel

    Quote Originally Posted by Sofia View Post
    Issue is not fixed
    Still I am getting the same error while creating a new database.

    Regards,
    Sofia
    What is the error?

  4. #4
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: MySQL DB size shows 0 Mb in cPanel

    On 11.26 machines, if you are using MySQL 4.0 or MySQL 4.1, cPanel > MySQL Databases area will not display the disk usage. This does work for MySQL 4 and 5 on 11.28 machines, though, which should be the default version on all tiers unless your machine hasn't been automatically updated recently. (MySQL 4 was added for "Include databases in disk usage calculations" per internal case #42912.)

    Also, it is far easier to just update this setting in WHM > Tweak Settings area over editing the /var/cpanel/cpanel.config file manually:

    WHM > Tweak Settings > Include databases in disk usage calculations

    Then save the area.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  5. #5
    Registered User
    Join Date
    Jan 2011
    Posts
    2

    Default Re: MySQL DB size shows 0 Mb in cPanel

    I've WHM 11.28.64 CENTOS 5.5 i686 standard on lisbon box with Mysql 4, but the cPanel is still showing the mysql database size 0. Please see the below response, from one of your staff members, who advised us to upgrade the mysql 4 to mysql 5, but as per your post, I guess there is no need to do so. can you please advise ?

    ======================
    cPanel Ticket # 1182502

    Hello

    In order to support space calculations on MySQL, you need to make sure you run at least MySQL 5.0 as the SQL code to generate space calculations isn't available on MySQL 4.1.Please let us know if you need anything else.


    --
    Gary Stanley
    FreeBSD/Linux Technical Analyst II
    cPanel

    ======================
    Last edited by harishk; 01-29-2011 at 04:31 PM.

  6. #6
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: MySQL DB size shows 0 Mb in cPanel

    Hello,

    Please re-reply to the ticket and quote the internal case number I quoted in the ticket (42912) where it was indicated in our system that MySQL 4 should now be included (and why in 11.28 it doesn't have a message stating MySQL 4 isn't supported for that specific option any longer).

    I've also asked another technician to review the ticket, but replying to it in case you don't get a response back tonight would be helpful.

    Thank you.
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  7. #7
    Registered User
    Join Date
    Jan 2011
    Posts
    2

    Default Re: MySQL DB size shows 0 Mb in cPanel

    I've replied the ticket.

    Thanks

  8. #8
    Member coderiser's Avatar
    Join Date
    Jan 2011
    Posts
    18

    Default Re: MySQL DB size shows 0 Mb in cPanel

    check your database mapping
    LicenseCube.com - Cheap Plesk, DirectAdmin, and WHMCS licenses with instant activation, full support, & free installation!

Similar Threads & Tags
Similar threads

  1. Imported datatabase via phpMyAdmin shows 0 size in cPanel
    By santocki in forum Database Discussions
    Replies: 4
    Last Post: 02-16-2012, 01:34 PM
  2. Error on all cPanel servers - All MySQL Databases shows 0 MB.
    By jols in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 08-13-2010, 08:23 AM
  3. cpanel shows sql database size 0
    By LAZer in forum New User Questions
    Replies: 4
    Last Post: 04-04-2010, 03:54 AM
  4. cpanel shows wrong mysql version
    By SonicGT in forum Database Discussions
    Replies: 1
    Last Post: 03-18-2007, 04:25 PM
  5. why cpanel shows more space for mysql db than phpmyadmin?!
    By -=JaNeK=- in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-16-2004, 01:29 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube