Answers.Body: <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>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2018-02-05T16:26:59.053Z
Answers.LastActivityDate: 2018-02-05T16:26:59.053Z
Answers.UserDisplayName: Will
Body: <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>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-02T19:56:35.543Z
Comments.Text: 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.
Comments.UserDisplayName: Will
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2018-02-02T21:13:59.083Z
Comments.Text: Would you mind adding that as an official answer instead of a comment, @Will?
Comments.UserDisplayName: Brad Bell
Tags: <mysql><composer>
Title: Craft 3 Ubuntu installation error via composer setup
ThreadText: # 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.
  
  
  ---
  
  