Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    Member
    Join Date
    Aug 2003
    Posts
    12

    Default mysql connect timeout during daily backup

    Hi,

    Is there a way to stop the mysql connection timeouts I get when cpanel does its backups? It almost always loses connection on my "posts" table in my Vbulletin database.

    I read somewhere that using max_packet_size = 16M would remedy the problem, but I'm sure I already have that.

    Thanks

  2. #2
    Member
    Join Date
    Sep 2001
    Posts
    81

    Default

    I had the same problem, mine would fail 4 out of 5 nights. Per someone's suggestion on another forum I chagned my.cnf to the following and it has has not failed for 3 straight nights now (keeping fingers crossed):

    [mysqld]
    key_buffer=16M
    myisam_sort_buffer_size=64M
    join_buffer=1M
    record_buffer=1M
    sort_buffer=2M
    tmp_table_size=32M
    table_cache=1024
    thread_cache_size=256
    table_cache=10
    wait_timeout=20
    interactive_timeout=200
    connect_timeout=10
    max_allowed_packet=16M

    I think maybe some of the timeout settings help also as I had previously has the max_allowed_packet set to 16M and also at 32M and it still failed.

    I will let you know after a few more nights if the problem is solved.

  3. #3
    Member
    Join Date
    Aug 2003
    Posts
    12

    Default

    Great, thanks Hostseeker. I'll give it a shot and see how that goes.

  4. #4
    Member
    Join Date
    Jun 2004
    Posts
    5

    Default

    So how did it go ?

  5. #5
    Member
    Join Date
    Sep 2001
    Posts
    81

    Default

    After making the changes on my last post the problem still existed about half the time. Then I changed the 'wait_timeout' to 3600 and now it works properly 95% of the time. (still fails about 1 out of 20 times, but I can live with that)

Similar Threads & Tags
Similar threads

  1. Replies: 13
    Last Post: 06-15-2010, 04:31 PM
  2. Best way to backup all MySQL DBs on daily basis ?
    By WebHostDog in forum cPanel and WHM Discussions
    Replies: 6
    Last Post: 07-08-2007, 02:36 AM
  3. Timeout on connect
    By Shaheen in forum New User Questions
    Replies: 4
    Last Post: 08-09-2006, 08:49 AM
  4. Backup daily and weeky but my box backup only daily
    By taotoon in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 06-28-2005, 08:39 PM
  5. Replies: 0
    Last Post: 06-27-2004, 02:53 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube