# Import from Kinsta gives blank wordpress install 2

**URL:** <https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472>\
**Category:** Installation\
**Created:** [May 10, 2022, 5:01pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472 "2022-05-10T17:01:17Z")\
**Posts on this page:** 14\
**Page:** 1

<div class="post-metadata">

**Author:** ![dgilfillan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgilfillan/32/1122_2.png) [@dgilfillan](https://community.kinsta.com/u/dgilfillan)\
**Post date:** [May 10, 2022, 5:01pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/1 "2022-05-10T17:01:17Z")

</div>

Same issue as: [Import from Kinsta gives blank wordpress install](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install/1405) (but can’t see any way to reopen, so creating new topic with same name)

**Running:**

- Latest DevKinsta 2.5.0.3657
- Windows 10 Pro
- Latest Docker Desktop/Engine 4.8.1

**Steps to recreate issue:**

- Brand new Wordpress install to Kinsta account
- Connect DevKinsta to KinstaAccount
- Add site → Import from Kinsta

**Outcome:** Causes blank wordpress install.

(It seems the WP files get downloaded, but the db file, ie \*.sql never gets downloaded or subsequently ran locally within the docker environment.)

Current workaround offered by@ David\_Greene 1 month ago: of exporting db from phpmyadmin and then importing locally not really a viable solution for us unfortunately as we are currently in the process of evaluating managed hosting providers/wordpress dev op environments and not being able to easily create a local sandbox from a blank WP install makes Kinsta a difficult sell internally!

We will need to do this regularly with our staging/production sites. So any help in resolving would be very much appreciated and I will happily support with any log files required.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [May 10, 2022, 5:27pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/2 "2022-05-10T17:27:14Z")

</div>

Hi @dgilfillan, thanks for reaching out.  
We’re in the QA phase of a new release of DevKinsta that will fix this issue. I’ll be sure to notify you as soon as it is released!

You can actually see what’s happening if you navigate to your Kinsta site after a failed pull and view the “home” directory above ~/public. The database is being created there with a malformed name. You can also rename the file to backup.sql and move it to ~/public.

Again, this is one of the big fixes of the next release that should be out within a week.

---

<div class="post-metadata">

**Author:** ![dgilfillan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgilfillan/32/1122_2.png) [@dgilfillan](https://community.kinsta.com/u/dgilfillan)\
**Post date:** [May 10, 2022, 5:36pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/3 "2022-05-10T17:36:28Z")

</div>

> [@Kevin](#):
>
> the QA phase of a new release of DevKinsta th

Hey Kevin, thanks for the ultra quick response!

Sounds good. I look forward to the update.

I can confirm, on import I see a .sql with a malformed name.

I can rename it to “backup.sql” and place in the ~/public, but I’m not sure how that will help??? Are you saying I can then just import this file locally in adminer?

If it’s going to be fixed within a week, then may not need to spend too much time on it… just curious if I can manually complete, relatively quickly in the meantime.

Thanks again!

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [May 10, 2022, 5:40pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/4 "2022-05-10T17:40:17Z")

</div>

Yes, so DevKinsta looks for backup.sql in ~/public after the file transfer and uses that to populate the local database.

As long as there is a backup.sql in ~/public on the source/Kinsta site, DevKinsta will use that after you Pull in the site.

So basically just rename that file, move it, then Pull from Kinsta to DevKinsta and it should work as expected!

---

<div class="post-metadata">

**Author:** ![dgilfillan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgilfillan/32/1122_2.png) [@dgilfillan](https://community.kinsta.com/u/dgilfillan)\
**Post date:** [May 10, 2022, 5:51pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/5 "2022-05-10T17:51:43Z")

</div>

> [@dgilfillan](#):
>
> Windows 10 Pro

So basically, I will need to pull the site, let it fail, rename the file to “backup.sql”, move it to the ~/public folder and then pull the site again?

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [May 10, 2022, 5:53pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/6 "2022-05-10T17:53:39Z")

</div>

Correct, if there isn’t already a malformed backup.sql in the home directory, you will have to Pull/fail first. Or you can just use the phpMyAdmin route and create a backup.sql and drop it into ~/public before you Pull the site. It’s basically the same process.

---

<div class="post-metadata">

**Author:** ![dgilfillan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgilfillan/32/1122_2.png) [@dgilfillan](https://community.kinsta.com/u/dgilfillan)\
**Post date:** [May 10, 2022, 5:58pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/7 "2022-05-10T17:58:04Z")

</div>

Am I correct in thinking that the phpMyAdmin route will require running a SQL command to rename intall? Whereas using the backup.sql file renaming should have already happened?

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [May 10, 2022, 6:04pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/8 "2022-05-10T18:04:49Z")

</div>

So the Search and Replace doesn’t happen until after the site files are pulled into DevKinsta/local.

Exporting the database to backup.sql from phpMyAdmin is just the manual way of doing what DevKinsta does. Both produce the same .sql file with no modifications yet.

---

<div class="post-metadata">

**Author:** ![dgilfillan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgilfillan/32/1122_2.png) [@dgilfillan](https://community.kinsta.com/u/dgilfillan)\
**Post date:** [May 10, 2022, 6:33pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/9 "2022-05-10T18:33:14Z")

</div>

Ok understood. Much appreciated!

However, 2 quick questions:

1. am I correct in saying there is no way to actually “Pull” a site as such in DevKinsta correct? Rather you “Import” a site. So once I’ve attempted the first “Import” and created that backup.sql file remotely, I need to delete the site locally and “Import” it again (obviously after renaming and moving the backup.sql file remotely).
2. I may have noticed a bug in that when I “Imported”, I actually imported from my staging environment and yet the malformed backup.sql that got created did not get created in my staging environment, rather it got created in my production(live) environment?!

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [May 10, 2022, 6:42pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/10 "2022-05-10T18:42:03Z")

</div>

You’re welcome!

1. Yes that is correct; you’ll just have to try the process to get a handle on what’s going on.
2. That might be part of the bug, I never actually noticed that behavior, though. I’ll be sure our team tests this for the next release to make sure it isn’t happening still.

---

<div class="post-metadata">

**Author:** ![dgilfillan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgilfillan/32/1122_2.png) [@dgilfillan](https://community.kinsta.com/u/dgilfillan)\
**Post date:** [May 11, 2022, 10:17am UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/11 "2022-05-11T10:17:18Z")

</div>

Unfortunately, the above steps are still unsucessful. The existance of the backup.sql file within the ~/public folder did not recreate the correct database. Rather strangely, a database from a previous backup of the site seems to have been used.

This process is definitely broken at this time. Please let me know as soon as the update comes out so I can test it.

Please also thoroughly test it yourselves before release to ensure the correct DB from the correct environment is downloaded and restored the DevKinsta site.

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/kevin/32/808_2.png) [@Kevin](https://community.kinsta.com/u/Kevin)\
**Post date:** [May 12, 2022, 4:32pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/12 "2022-05-12T16:32:24Z")

</div>

Hi @dgilfillan, version 2.6.0 of DevKinsta has just been released. Please retry with this version and let me know if the issue persists.

---

<div class="post-metadata">

**Author:** ![dgilfillan](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/dgilfillan/32/1122_2.png) [@dgilfillan](https://community.kinsta.com/u/dgilfillan)\
**Post date:** [May 16, 2022, 1:01pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/13 "2022-05-16T13:01:41Z")

</div>

Hi Kevin, using the new version (v2.6.0.4179) I can confirm importing is working correctly. Many thanks for your efforts!

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)\
**Post date:** [May 19, 2022, 1:02pm UTC](https://community.kinsta.com/t/import-from-kinsta-gives-blank-wordpress-install-2/1472/14 "2022-05-19T13:02:18Z")

</div>

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