---
title: "When doing a rebuild I get the error MySQL server has gone away"
date: "2021-05-26T14:07:10+00:00"
summary: "Resolve the \"MySQL server has gone away\" error during Site Studio rebuilds by increasing the MySQL wait_timeout setting. Learn how to adjust database configurations for smoother, uninterrupted website rebuilds."
image:
type: "article"
url: "/drupal-starter-kits/add-ons/site-studio/help/64571-when-doing-rebuild-i-get-error-mysql-server-has-gone-away"
id: "57befcb8-5737-41c5-ae0d-ec0d938a2fec"
---

Increase the `MySQL wait_timeout` setting.

A Site Studio rebuild can require a long time to process, depending on the content and complexity of your site. On large or complex sites, you may encounter the `MySQL server has gone away` error during or after the rebuild. If this error appears, refer to the [How to override the default MySQL wait\_timeout setting](/acquia-cloud-platform/help/92266-how-do-i-override-default-mysql-waittimeout-setting "How do I override the default MySQL wait_timeout setting?") user guide for instructions. After you increase the wait timeout, re-run the rebuild process to resolve the error.