<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>

CC BY-SA 4.0
2020-08-07T17:30:30.613Z
2020-08-07T17:30:30.613Z
Oli
<p>Here is the answer, thanks to @Brandon Kelly: ./craft migrate/up --track=craft</p>

CC BY-SA 4.0
2020-08-07T18:27:41.700Z
2020-08-07T18:27:41.700Z
Roi Agneta
<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>

<craft3><updates><timeout>
Craft 2 to Craft update - timeout when updating database
# 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 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


---

