<p>[SOLVED] By upping wait_timeout from 10 to 100 in my.cnf - seems to have fixed the issue. </p>

<p>Initial google searches for "Error while sending QUERY packet" led me to increase max_allowed_packet size, but this didn't fix the problem alone. 
Note, I'm not sure if both timeout and packet size need to be increased or just timeout nevertheless I have increased both and it works now.</p>

<p>Another side note on my server setup, the server I had problem with was a default Vesta CP ubuntu/mysql configuration. I had no problem installing Craft 3 on a different ubuntu 16 configured by Serverpilot.io.</p>

CC BY-SA 3.0
2018-02-05T16:26:59.053Z
2018-02-05T16:26:59.053Z
Will
<p>After running composer and then initiating craft setup I keep getting this error:</p>

<pre><code>Username: [admin]
Email: abc@test.com
Password:
Confirm:
Site name: test
Site URL: test.com
Site language: [en-US]
Installing Craft...

Exception 'craft\errors\MigrationException' with message 'An error occurred while executing the "craft\migrations\Install migration: Error while sending QUERY packet. PID=25472'

in /vendor/craftcms/cms/src/db/MigrationManager.php:267
</code></pre>

<p>My MySQL version is 5.7.18-0ubuntu0.16.04.1.</p>

CC BY-SA 3.0
2018-02-02T19:56:35.543Z
Well, after trying a myriad of things, I ended up upping wait_timeout=10 to wait_timeout=100 & that did the trick. Also previously increased max_allowed_packet but that didnt seem to have an effect.  Hope this helps someone.
Will
CC BY-SA 3.0
2018-02-02T21:13:59.083Z
Would you mind adding that as an official answer instead of a comment, @Will?
Brad Bell
<mysql><composer>
Craft 3 Ubuntu installation error via composer setup
# Craft 3 Ubuntu installation error via composer setup

(Asked by: username_0 on 2018-02-02)

After running composer and then initiating craft setup I keep getting this error:
Username: [admin]
Email: abc@test.com
Password:
Confirm:
Site name: test
Site URL: test.com
Site language: [en-US]
Installing Craft...

Exception 'craft\errors\MigrationException' with message 'An error occurred while executing the "craft\migrations\Install migration: Error while sending QUERY packet. PID=25472'

in /vendor/craftcms/cms/src/db/MigrationManager.php:267

My MySQL version is 5.7.18-0ubuntu0.16.04.1.

**Tags:** mysql, composer

> **Comments:**
> **username_0**: Well, after trying a myriad of things, I ended up upping wait_timeout=10 to wait_timeout=100 & that did the trick. Also previously increased max_allowed_packet but that didnt seem to have an effect.  Hope this helps someone.  
> **username_1**: Would you mind adding that as an official answer instead of a comment, @username_0?  

---

## 1 answers

### Answer by username_0 on 2018-02-05. Score: 2 | Accepted answer

[SOLVED] By upping wait\_timeout from 10 to 100 in my.cnf - seems to have fixed the issue.

Initial google searches for "Error while sending QUERY packet" led me to increase max\_allowed\_packet size, but this didn't fix the problem alone.
Note, I'm not sure if both timeout and packet size need to be increased or just timeout nevertheless I have increased both and it works now.

Another side note on my server setup, the server I had problem with was a default Vesta CP ubuntu/mysql configuration. I had no problem installing Craft 3 on a different ubuntu 16 configured by Serverpilot.io.


---

