<p>A <a href="https://dev.mysql.com/doc/refman/5.0/en/gone-away.html" rel="nofollow">2006: MySQL server has gone away error</a> generally means that (for any number of reasons) the connection between Craft/PHP and the MySQL server has been dropped.</p>

<p>Common causes are from connection timeouts and misconfigured MySQL settings like max_packet_size.</p>

<p>There are lots of debugging tips in the above link from MySQL's official documentation that would be a good place to start.  Additionally you might want to involve your host and let them know what you're seeing.</p>

CC BY-SA 3.0
2015-10-14T17:57:51.833Z
2015-10-14T17:57:51.833Z
Brad Bell
<p>I get an error when trying to load a page occasionally. It appears to have a problem getting the "type" property from a matrix block.</p>

<pre><code>CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]:
General error: 2006 MySQL server has gone away. The SQL statement 
executed was: SELECT `id`, `groupId`, `name`, `handle`, `context`, 
`instructions`, `translatable`, `type`, `settings`
FROM `craft_fields`
WHERE (handle = :handle) AND (context = :context)
ORDER BY `name`. Bound with :handle='type',
:context='matrixBlockType:6'
</code></pre>

CC BY-SA 3.0
2015-10-14T06:19:13.090Z
*"MySQL server has gone away"* – it looks like you're having connection problems.
carlcs
<templating><matrix>
CDbCommand failed to execute the SQL statement
# CDbCommand failed to execute the SQL statement

(Asked by: username_0 on 2015-10-14)

I get an error when trying to load a page occasionally. It appears to have a problem getting the "type" property from a matrix block.
CDbCommand failed to execute the SQL statement: SQLSTATE[HY000]:
General error: 2006 MySQL server has gone away. The SQL statement 
executed was: SELECT `id`, `groupId`, `name`, `handle`, `context`, 
`instructions`, `translatable`, `type`, `settings`
FROM `craft_fields`
WHERE (handle = :handle) AND (context = :context)
ORDER BY `name`. Bound with :handle='type',
:context='matrixBlockType:6'

**Tags:** templating, matrix

> **Comments:**
> **username_1**: *"MySQL server has gone away"* – it looks like you're having connection problems.  

---

## 1 answers

### Answer by username_2 on 2015-10-14. Score: 1 | Accepted answer

A [2006: MySQL server has gone away error](https://dev.mysql.com/doc/refman/5.0/en/gone-away.html) generally means that (for any number of reasons) the connection between Craft/PHP and the MySQL server has been dropped.

Common causes are from connection timeouts and misconfigured MySQL settings like max\_packet\_size.

There are lots of debugging tips in the above link from MySQL's official documentation that would be a good place to start. Additionally you might want to involve your host and let them know what you're seeing.


---

