Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 8 of 8
  1. #1
    Member
    Join Date
    Mar 2002
    Posts
    448

    Default cpanel current database list is showing .sql.gz files as databases

    Hi,

    I've recently noticed that in

    cPanel > MySQL databases

    that in the list of 'current databases' cPanel appears to be listing the .sql.gz files corresponding to each actual mysql db - AND counting these files towards the total of dbs being used by the hosting account.


    This is using cPanel 11.15.0-RELEASE

    Has anyone else spotted this? Surely a cPanel bug in need of reporting?
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

  2. #2
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Where do these .sql.gz files reside on your server?

  3. #3
    Member
    Join Date
    Mar 2002
    Posts
    448

    Default

    Ah! They reside in /home/mysql. That explains it!
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

  4. #4
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    So, you are saying:

    1. A user has some files in /home/user named db_name.sql.gz - where db_name is the same as a database owned by the user

    2. When accessing the MySQL Database page in X3, which has the URI /frontend/x3/sql/index.html, those backup files are listed as databases

    is the above a correct assessment?

    What is your full cPanel version number?

  5. #5
    Member
    Join Date
    Mar 2002
    Posts
    448

    Default

    Here's a cut and paste from the list of 'Current Databases' from the cPanel > MySQL Databases page:

    Current Databases
    Search
    Database Size Users Actions
    account_12all 3.00 MB
    account_user Delete User
    Delete Database
    account_12all.sql.gz 0.27 MB
    Delete Database
    account_complete 0.19 MB
    accoount_user Delete User
    Delete Database
    account_complete.sql.gz 0.00 MB
    Delete Database

    In answering your questions:

    1. The mysql dir had been moved some time ago (for space reasons) from /var/lib/mysql to /home/mysql. For every database dir in /home/mysql there was a corresponding .sql.gz file.

    Example:
    /home/mysql/account_primary/
    /home/mysql/account_primary.sql.gz

    Thinking that maybe it was because the mysql dir was in /home and not /var/lib that was causing this problem, we've just (last night) moved it back to /var/lib/mysql - but this has not fixed the problem.

    2. You're 100% correct

    Server info:

    cPanel Version 11.15.0-RELEASE
    cPanel Build 17853
    Theme x3
    Apache version 1.3.39 (Unix)
    PHP version 4.4.7
    MySQL version 4.1.22-standard
    Architecture x86_64
    Operating system Linux

    So something is causing these .sql.gz files to be written (possibly a backup process?), and something in cPanel is causing these files to be misindentified as actual mysql dbs.
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

  6. #6
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    Something is definitely wacky there, possibly related to having MySQL reside in /home rather than /var

    Please open a support ticket at https://tickets.cpanel.net/submit/ so we can deduce what is happening, resolve it, and hopefully prevent it from happening again (and to others if possible).

  7. #7
    Member
    Join Date
    Mar 2002
    Posts
    448

    Default

    Quote Originally Posted by cpanelkenneth View Post
    Something is definitely wacky there, possibly related to having MySQL reside in /home rather than /var

    Please open a support ticket at https://tickets.cpanel.net/submit/ so we can deduce what is happening, resolve it, and hopefully prevent it from happening again (and to others if possible).
    Thx. I've just done this (at last!). Problem is still there.

    Can I assume that you're now encouraging support via tickets.cpanel.net and not bugzilla.cpanel.net?
    • Web Design Perth .:. Itomic Business Website Solutions of Perth, Western Australia

  8. #8
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    The only support channel is tickets.cpanel.net The Bugzilla is for reporting (potential) bugs and feature requests. Anything that would require us to examine the system in question needs filed through tickets.cpanel.net

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 01-17-2011, 12:42 PM
  2. [Case 44974] Rename SQL databases via cPanel
    By cPanelDon in forum Feature Requests for cPanel/WHM
    Replies: 4
    Last Post: 11-25-2010, 03:06 PM
  3. cPanel upgraded - SQL databases LOST!
    By Handy Harry in forum Database Discussions
    Replies: 4
    Last Post: 12-09-2009, 11:23 PM
  4. cpanel password and sql databases
    By cooldude7273 in forum Database Discussions
    Replies: 5
    Last Post: 05-12-2005, 12:28 PM
  5. cpanel password and sql databases
    By cooldude7273 in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 05-12-2005, 12:28 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube