# How do I migrate from Windows to Ubuntu?

**URL:** <https://community.localwp.com/t/how-do-i-migrate-from-windows-to-ubuntu/32938>\
**Category:** Support\
**Tags:** installation, windows-10, linux\
**Created:** [August 21, 2022, 1:31pm UTC](https://community.localwp.com/t/how-do-i-migrate-from-windows-to-ubuntu/32938 "2022-08-21T13:31:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Laconic](https://avatars.discourse-cdn.com/v4/letter/l/e9a140/32.png) [@Laconic](https://community.localwp.com/u/Laconic)\
**Post date:** [August 21, 2022, 1:31pm UTC](https://community.localwp.com/t/how-do-i-migrate-from-windows-to-ubuntu/32938/1 "2022-08-21T13:31:05Z")

</div>

I’ve tried migrating from Windows by backing up my sites under the Local Sites folder and then copying them all to Ubuntu’s Local Sites folder.

I’ve also copy-pasted the every file under `/user/AppData/Roaming/Local/` to `/home/.config/Local/`

Yet I get a WordPress error: “Error establishing a database connection”

I’m using the latest version of Local. I recently migrated from windows and backed all the personal files, I should’ve exported and made a blueprint but it slipped my mind. I’d really appreciate finding a solution to this issue.

Thank you in advance!

---

<div class="post-metadata">

**Author:** ![sambrockway](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/sambrockway/32/18726_2.png) [@sambrockway](https://community.localwp.com/u/sambrockway)\
**Post date:** [August 23, 2022, 10:51am UTC](https://community.localwp.com/t/how-do-i-migrate-from-windows-to-ubuntu/32938/2 "2022-08-23T10:51:15Z")

</div>

Hi @Laconic - welcome to the Local community! 👋

To clarify, are you following the process in these Help Docs of Exporting and Importing your site via Local?

**Exporting:**

> **[How to export a WordPress site from Local](https://localwp.com/help-docs/getting-started/how-to-export-a-wordpress-site-on-local/)**
>
> Start by opening “Local” and ensure that the site you want to export is running. Next, right-click on the site and select “Export.” Follow the prompts to save the website in a place that you can find…

**Importing:**

> **[How to Import a WordPress Site into Local](https://localwp.com/help-docs/getting-started/how-to-import-a-wordpress-site-into-local/)**
>
> Local is pretty flexible about being able to import a WordPress site from a archive. There are two required things that Local needs for the import to be successful: The folder (containing plugins…

Thanks!

Sam

---

<div class="post-metadata">

**Author:** ![system](https://sea1.discourse-cdn.com/flex019/user_avatar/community.localwp.com/system/32/1_2.png) [@system](https://community.localwp.com/u/system)\
**Post date:** [November 21, 2022, 10:52am UTC](https://community.localwp.com/t/how-do-i-migrate-from-windows-to-ubuntu/32938/3 "2022-11-21T10:52:11Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
