Answers.Body: <p>The <a href="https://craftcms.com/docs/3.x/console-commands.html" rel="nofollow noreferrer">console command</a> you are looking for is:</p>
  <pre><code>./craft migrate/all
  </code></pre>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-07T17:30:30.613Z
Answers.LastActivityDate: 2020-08-07T17:30:30.613Z
Answers.UserDisplayName: Oli
Answers.Body: <p>Here is the answer, thanks to @Brandon Kelly: ./craft migrate/up --track=craft</p>
  
Answers.ContentLicense: CC BY-SA 4.0
Answers.CreationDate: 2020-08-07T18:27:41.700Z
Answers.LastActivityDate: 2020-08-07T18:27:41.700Z
Answers.UserDisplayName: Roi Agneta
Body: <p>I am trying to update a site from Craft 2 to Craft 3. I first set up a new server, installed Craft 3, copied over config settings from the original site, and moved over a copy the original database. I have done this successfully on quite a few Craft 2 to 3 updates with no problem.</p>
  <p>After pointing my browser to mysite/admin I got the prompt to finish up / update the database as expected, but the process timed out. The sql file I moved over is about 8mb, not especially large. In any case, is there any way I can run the database update process from the console in order to avoid the timeout issue?</p>
  
Tags: <craft3><updates><timeout>
Title: Craft 2 to Craft update - timeout when updating database
ThreadText: # Craft 2 to Craft update - timeout when updating database
  
  (Asked by: username_0 on 2020-08-07)
  
  I am trying to update a site from Craft 2 to Craft 3. I first set up a new server, installed Craft 3, copied over config settings from the original site, and moved over a copy the original database. I have done this successfully on quite a few Craft 2 to 3 updates with no problem.
  
  After pointing my browser to mysite/admin I got the prompt to finish up / update the database as expected, but the process timed out. The sql file I moved over is about 8mb, not especially large. In any case, is there any way I can run the database update process from the console in order to avoid the timeout issue?
  
  **Tags:** craft3, updates, timeout
  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_1 on 2020-08-07. Score: 2
  
  The [console command](https://craftcms.com/docs/3.x/console-commands.html) you are looking for is:
  
  ```
  ./craft migrate/all
  
  ```
  
  
  ---
  
  ### Answer by username_0 on 2020-08-07. Score: 2
  
  Here is the answer, thanks to @Brandon Kelly: ./craft migrate/up --track=craft
  
  
  ---
  
  