Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Raise MySQL Timeout

Discussion in 'General Discussion' started by moogle, Jun 21, 2003.

  1. moogle

    moogle Well-Known Member

    Apr 7, 2003
    Likes Received:
    Trophy Points:
    A client is trying to download a rather large database (30+ mb) to back it up but after about 5mb it stops, times out. Is there something I can do so he can back up the entire DB?

    He had the same problem when uploading it, but found he could upload with FTP and then import it. This is too much work to keep doing, so I wonder if I can raise the timeout limit on MySQL.

    I was told this was set in Apache, would I be able to change it? Support Ticket Number:
  2. ciphervendor

    ciphervendor Well-Known Member

    Aug 26, 2002
    Likes Received:
    Trophy Points:
    You probably have the MySQL execute timeout variable as default(which is 5 seconds). You can either do the backup via the command line as root or increase the timeout by:

    edit: /etc/my.cnf
    add under [mysqld]: set-variable = connect_timeout=25
    service mysql stop
    service mysql start Support Ticket Number:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice