Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Oct 2008
    Posts
    38

    Default Incorrect database counts after restore.

    I recently restored a large amount of sites on a server from backups after an OS reload. However, alsmot all the accounts are showing the wrong number of MySQL databases used. Is there a script to run to correct this?
    Free hosting - Free cPanel hosting
    Using cPanel in the most extreme conditions!

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

    DataCenter Provider

    Default

    In addition to MySQL, does the system also have PostgreSQL installed?

    Are the database counts off by just one, where the total is 1 more than the expected count (e.g., 3 instead of 2, or 2 instead of 1, or 1 instead of 0)?

    I ask because it may be that PostgreSQL is installed but not fully configured yet, and so when the count is calculated there is an erroneous value returned for the number PostgreSQL databases (e.g., 1 instead of 0).

  3. #3
    Member
    Join Date
    Oct 2008
    Posts
    38

    Default

    It does have postgres installed too, but it is configured.
    Free hosting - Free cPanel hosting
    Using cPanel in the most extreme conditions!

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

    DataCenter Provider

    Lightbulb

    Please double-check to ensure the following two steps are completed for PostgreSQL:

    Step 1.)
    WHM: Main >> SQL Services >> Postgres Config >> Postgres Config Install
    On the above menu path, click to install the PostgreSQL configuration so it will be properly initialized.

    Step 2.)
    WHM: Main >> SQL Services >> Postgres Config >> Postgres Password
    On the above page, set the PostgreSQL (root) password.


    If you wanted to trigger a refresh of the database counts, you could remove the cached files that contain the counts, located in a path like the following two examples:
    Code:
    /home/username/.cpanel/datastore/mysql-db-count
    /home/username/.cpanel/datastore/postgres-db-count

  5. #5
    Member usercpanel's Avatar
    Join Date
    Aug 2007
    Posts
    15

    Default Thanks

    Thank you Cpanel Don. It worked

Similar Threads & Tags
Similar threads

  1. Incorrect MySQL Database Count
    By SomeoneX in forum Database Discussions
    Replies: 12
    Last Post: 02-18-2010, 09:33 PM
  2. Database restore not working
    By dare2audition in forum Database Discussions
    Replies: 0
    Last Post: 02-18-2008, 09:32 AM
  3. Horde database restore
    By stwman11 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 08-24-2006, 08:24 AM
  4. database has proplem after restore
    By tinhnho in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 07-31-2005, 12:24 AM
  5. Backup counts for user disk quota?
    By SilvaCosta in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-15-2003, 10:31 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube