Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 13 of 13
  1. #1
    Member
    Join Date
    Aug 2008
    Posts
    9

    Exclamation Incorrect MySQL Database Count

    Hi,

    I'm having a problem with my cPanel server.

    All accounts are experiencing this problem. Even though it's a new account

    The MySQL database count is +1 than the correct number.

    So, if I have 3 MySQL databases, cPanel will show it as 4.

    Any solution?

    Thanks you very much.

  2. #2
    Member serversignature's Avatar
    Join Date
    Nov 2007
    Location
    Bangalore
    Posts
    107

    Default

    please open a support ticket with cpanel from your WHM
    Serversignature.com - Professional Linux Consulting.

  3. #3
    Member
    Join Date
    Sep 2006
    Posts
    5

    Default

    Hi,

    Any updates on this. Got the same issue here.

  4. #4
    Member
    Join Date
    Jun 2009
    Posts
    10

    Default

    Try updating pqsql if it is installed in the server. This should fix it.

  5. #5
    Registered User
    Join Date
    Jun 2009
    Posts
    4

    Unhappy

    I have the same issue, but for all accounts in my server.
    The PostgreSQL version is 8.3.7 and my cpanel/whm verisions are cPanel 11.24.4-R36167 - WHM 11.24.2 in the server with this issue, and the same version in my others servers don't have this inconvenience.

    Any idea about how to fix this?

  6. #6
    Member
    Join Date
    Aug 2008
    Posts
    9

    Default

    Quote Originally Posted by krizag View Post
    Try updating pqsql if it is installed in the server. This should fix it.
    Have you trieed this method, afernandez?

  7. #7
    Member
    Join Date
    Sep 2006
    Posts
    5

    Smile

    Hi,

    Updating postgres in the server will work. In our case the postgres was not installed correctly in the server.

    Thanks

  8. #8
    Registered User
    Join Date
    Jul 2009
    Posts
    1

    Default

    So what version is required for postgresql to correct this MySQL DB counter problem?

  9. #9
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Apr 2008
    Posts
    38

    Default

    I don't understand why installing PostGreSQL would fix a problem with MySQL database counter.

    If you're getting the number of databases + 1, that is probably because cPanel is counting the information_schema database. Try hiding that database to see if it works correctly.

    1) Open /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php and add the following line:

    $cfg['Servers'][$i]['hide_db'] = 'information_schema';

  10. #10
    Member
    Join Date
    Feb 2010
    Posts
    18

    Default

    Quote Originally Posted by romulob View Post
    I don't understand why installing PostGreSQL would fix a problem with MySQL database counter.

    If you're getting the number of databases + 1, that is probably because cPanel is counting the information_schema database. Try hiding that database to see if it works correctly.

    1) Open /usr/local/cpanel/base/3rdparty/phpMyAdmin/config.inc.php and add the following line:

    $cfg['Servers'][$i]['hide_db'] = 'information_schema';
    information_schema is hidden
    but the MySQL database count is +1 than the correct number!

  11. #11
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by romulob View Post
    I don't understand why installing PostGreSQL would fix a problem with MySQL database counter.
    The issue can be easily caused by an incorrectly or partially setup PostgreSQL installation, hence why correcting this often alleviates the issue. If PostgreSQL is not in use then it should not be installed to begin with and should be fully removed by the server administrator.

    Quote Originally Posted by romulob View Post
    If you're getting the number of databases + 1, that is probably because cPanel is counting the information_schema database. Try hiding that database to see if it works correctly.
    I am not aware of the described scenario ever occurring; this should not happen under any circumstances.

    Quote Originally Posted by WebGraf View Post
    information_schema is hidden
    but the MySQL database count is +1 than the correct number!
    What is the full cPanel version and build number of the system?

    Are any PostgreSQL software packges installed (e.g., installed RPMs)? What is the output of the following command via root SSH access?
    Code:
    # rpm -qa | grep -i "postgresql\|pgsql" | sort
    Please see the following thread for additional reference information: Incorrect database counts after restore. - cPanel Forums

  12. #12
    Member
    Join Date
    Feb 2010
    Posts
    18

    Default

    # rpm -qa | grep -i "postgresql\|pgsql" | sort
    postgresql-8.1.18-2.el5_4.1
    postgresql-devel-8.1.18-2.el5_4.1
    postgresql-libs-8.1.18-2.el5_4.1

    Install Postgres Config
    Failed to locate postgresql user
    Failed to locate postgresql user

    then I replaced 1 on 0 in /home/username/.cpanel/datastore/postgres-db-count

    count db is good

    sorry for bad English
    Last edited by WebGraf; 02-18-2010 at 12:55 AM.

  13. #13
    cPanel Quality Assurance Analyst cPanelDon's Avatar
    Join Date
    Nov 2008
    Location
    Houston, Texas, U.S.A.
    Posts
    2,555
    cPanel/Enkompass Access Level

    DataCenter Provider

    Default

    Quote Originally Posted by WebGraf View Post
    # rpm -qa | grep -i "postgresql\|pgsql" | sort
    postgresql-8.1.18-2.el5_4.1
    postgresql-devel-8.1.18-2.el5_4.1
    postgresql-libs-8.1.18-2.el5_4.1

    Install Postgres Config
    Failed to locate postgresql user
    Failed to locate postgresql user

    then I replaced 1 on 0 in /home/username/.cpanel/datastore/postgres-db-count

    count db is good

    sorry for bad English
    Please note that manually changing the database count in the datastore "db-count" (cache) file will not correct the problem and the issue will reoccur until it is resolved. To correctly resolve the issue it is necessary to either fully remove PostgreSQL or to complete the installation; having only the PostgreSQL RPMs installed without performing the other steps will result in an incomplete configuration.

    To properly install and setup PostgreSQL please carefully review the step-by-step installation guide detailed in the following documentation resource: Installing PostgreSQL on your cPanel/WHM Server

Similar Threads & Tags
Similar threads

  1. Column count of mysql.db is wrong upgrading mySQL
    By Metro2 in forum Database Discussions
    Replies: 16
    Last Post: 05-05-2010, 10:16 AM
  2. Incorrect database counts after restore.
    By nxweb in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 02-04-2010, 09:58 PM
  3. Bandwidth count incorrect
    By Tagor in forum cPanel and WHM Discussions
    Replies: 17
    Last Post: 12-31-2004, 08:09 AM
  4. postgresql incorrect db count
    By Sheldon in forum cPanel and WHM Discussions
    Replies: 5
    Last Post: 06-16-2004, 10:58 PM
  5. ERROR 1136 at line 2: Column count doesn't match value count at row 1
    By greg in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-08-2003, 07:31 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube