# Upgrading from 5.1.1 to Mautic 6.x via command line

**URL:** https://forum.mautic.org/t/upgrading-from-5-1-1-to-mautic-6-x-via-command-line/35673
**Category:** Mautic 6 Install/Upgrade Support
**Created:** [May 15, 2025, 6:12pm UTC](https://forum.mautic.org/t/upgrading-from-5-1-1-to-mautic-6-x-via-command-line/35673 "2025-05-15T18:12:19Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![deafinfotech](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/deafinfotech/32/14008_2.png) [@deafinfotech](https://forum.mautic.org/u/deafinfotech)
#### Post date: [May 15, 2025, 6:12pm UTC](https://forum.mautic.org/t/upgrading-from-5-1-1-to-mautic-6-x-via-command-line/35673/1 "2025-05-15T18:12:19Z")

</div>

I am using Mautic on a shared host provider. I know it is strongly recommended not to run Mautic on a cheap shared host provider. However, my provider made Muatic available as a One-Click install.

I’m running PHP 8.3

Now I am trying to upgrade to the latest version using the command line in SSH terminal.

It is failing at the check for Mautic updates.

Thanks.

---

<div class="post-metadata">

### Author: ![deafinfotech](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/deafinfotech/32/14008_2.png) [@deafinfotech](https://forum.mautic.org/u/deafinfotech)
#### Post date: [May 17, 2025, 12:28am UTC](https://forum.mautic.org/t/upgrading-from-5-1-1-to-mautic-6-x-via-command-line/35673/2 "2025-05-17T00:28:58Z")

</div>

I reached out to my host provider. They were able to run the find. I tried agin and was able to update to 6.0.1. but when I ran the --finish command, it belew up (ran out of memory) and I have memory set at 384MB.

I tried again, and now it can’t migrate the database.

What do I need to do to fix the database?

Thanks.

---

<div class="post-metadata">

### Author: ![raramuridesign](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/raramuridesign/32/13226_2.png) [@raramuridesign](https://forum.mautic.org/u/raramuridesign)
#### Post date: [May 20, 2025, 9:37am UTC](https://forum.mautic.org/t/upgrading-from-5-1-1-to-mautic-6-x-via-command-line/35673/3 "2025-05-20T09:37:32Z")

</div>

Try this

- increase memory, double it
- then if you have issues when checking the database fixes, read carefully what these are, as you might need to run different migrations.

Note this topic: [Issue with logging in to mautic 6.0 after upgrade from 5.2.5 - #8 by raramuridesign](https://forum.mautic.org/t/issue-with-logging-in-to-mautic-6-0-after-upgrade-from-5-2-5/35610/8)

Hope this helps  
M.

---

<div class="post-metadata">

### Author: ![deafinfotech](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.mautic.org/deafinfotech/32/14008_2.png) [@deafinfotech](https://forum.mautic.org/u/deafinfotech)
#### Post date: [May 20, 2025, 3:10pm UTC](https://forum.mautic.org/t/upgrading-from-5-1-1-to-mautic-6-x-via-command-line/35673/4 "2025-05-20T15:10:35Z")

</div>

Since this was a first time installation (using the webhost’s one-click install), I didn’t have any production data to worry about.

I ended up installing the 6.0.1 package manually. I dumped the database and created an empty database. Then the install went just fine.

As for the database errors during the post-upgrade …it couldn’t drop an INDEX file (company\_match) – Access denied. The index was there ..just couldn’t drop it. I wonder if it was because of cron jobs?
