Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Apr 2003
    Posts
    40

    Default mysql DB repair being run Daily by CPANEL?

    All of a sudden I wake to find my domains reporting mysql too many connection errors.

    I have one very large mysql DB (6GB). Inspection of the system shows that root is running a mysql repair against this database, the backup subsequently starts and tries to dump it, and user connections pile up as mysql is unable to respond to their queries.

    Since this just started, I assume this automatic daily mysql repair came with a CPANEL/WHM upgrade.

    How can I disable checking/repair of the mysql databases belonging to one or more particular user accounts ?

    TIA!

  2. #2
    Member
    Join Date
    Aug 2009
    Location
    Houston, Tx
    Posts
    275

    Default mySQL Repair

    Hello,


    I could understand how that would be inconvienent, however cPanel doesn't do a daily repair of databases. If you are still having issues we may need to take a closer look at it, and you can have us do that by putting a ticket in(at bottom of post).

    Thank you,
    Matthew Curry

  3. #3
    Member
    Join Date
    Apr 2003
    Posts
    40

    Default

    Quote Originally Posted by cPanelMattCurry View Post
    I could understand how that would be inconvienent, however cPanel doesn't do a daily repair of databases. If you are still having issues we may need to take a closer look at it, and you can have us do that by putting a ticket in(at bottom of post).

    Thank you,
    Matthew Curry
    Hi Matthew, thanks for the response.

    Last night I went into WHM and told backup not to backup the user account which owned the large database. I also told it not to backup the entire mysql databases, just for the individual accounts.

    I did not have a problem this am.

    Prior to this problem, I did have a cron, running from the user account that owned the large database, which did a repair and optimize on that database. It ran every Sunday early a.m. I figured out that was causing the problem and commented the line out of the crontab and killed the running task.

    However, the next several days the problem reoccurred, and this is when I found the mysql repair running as root. When it was running from my cron previously, the task ran as the respective user. This is why I assumed CPANEL was doing it.

    I'll have to look closer and report back.

  4. #4
    Member
    Join Date
    May 2008
    Posts
    1,203

    Default

    Hi,

    cPanel does not run the script of database repair on daily. If you have any issue with such databases then you can set the cron for that and run the database script for that databases.

    You can also run this script from SSH when you want to repair all the databases:

    mysqlcheck --all-databases -r #repair

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

    Root Administrator

    Default

    Actually, /scripts/pkgacct repairs the databases of a user before backing up the databases.
    Kenneth
    Product Manager
    cPanel, Inc.

  6. #6
    Member
    Join Date
    Aug 2009
    Location
    Houston, Tx
    Posts
    275

    Default Daily DB repair.

    My apologies.

Similar Threads & Tags
Similar threads

  1. Daily Error Email - Cron run-parts /etc/cron.daily
    By sm9 in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-04-2010, 10:09 PM
  2. Repair all database in mysql
    By robocap in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 08-06-2009, 07:45 AM
  3. MySQL Repair bug
    By WildWayz in forum cPanel and WHM Discussions
    Replies: 4
    Last Post: 09-20-2005, 10:11 PM
  4. Sick and tired of getting the cpanel daily run emails!!!!!!!!!
    By Jeff75 in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 08-22-2004, 12:33 PM
  5. mysql repair problem
    By Ken in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 03-04-2002, 06:32 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube