# Import from devkinsta (staging =\> Local)

**URL:** <https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400>\
**Category:** Bug Reports\
**Created:** [April 5, 2022, 11:54am UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400 "2022-04-05T11:54:36Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![bruno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/bruno/32/1028_2.png) [@bruno](https://community.kinsta.com/u/bruno)\
**Post date:** [April 5, 2022, 11:54am UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/1 "2022-04-05T11:54:36Z")

</div>

![accueil](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/a/a3f8f791672d0bc960187bc4a9f02f109603991c.jpeg)

Hello,  
**Q: Date/Time this occurred (Provide your time zone also)**  
\*\*A:\*\*05/04/2022

**Q: DevKinsta Version**  
\*\*A:\*\*2.5.0

**Q: OS Version**  
\*\*A:\*\*Windows 11

**Q: Docker Desktop Version**  
\*\*A:\*\*Last

**Q: Were any error codes or messages observed? If so, what were they?**  
**A:** No

**Q: Detailed Description of the Problem**  
I have the following problem.

I work locally with Devkinsta.

I would like to have a local backup, a second version.

In devkinsta, when I create a new site and import from devkinsta (staging =\> Local), I encounter the following problems

- It happened to me that the local version automatically redirects to the staging site despite the fact that it is the correct url entered in phpmyadmin (geturl, sitename, etc. …) and the Wordpress back office (site address)

- Display problem (broken css)

- It is not the same version (missing extensions, missing content, etc…). The site corresponds to a previous version and not to the current version

Did it happen to you? Would you have a solution to propose to me?  
Is there a reliable solution to import a staging site to locale in order to have backups of my work in locale (staging =\> Locale)?

Thanks to you  
Sincerely  
Bruno

**A:**

---

<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:** [April 5, 2022, 4:16pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/2 "2022-04-05T16:16:26Z")

</div>

Hi @bruno, welcome to DevKinsta!  
What you are describing could be a caching issue. You shouldn’t run into that sort of issue with a normal Staging =\> Local transfer.

Please feel free to private message your Staging URL to me and I will check to see what the cause could be.

---

<div class="post-metadata">

**Author:** ![bruno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/bruno/32/1028_2.png) [@bruno](https://community.kinsta.com/u/bruno)\
**Post date:** [April 5, 2022, 5:12pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/3 "2022-04-05T17:12:23Z")

</div>

Hello Kevin,  
Thank you very much for your help, it’s nice.

The staging url is: [hidden]

If you need any additional information, don’t hesitate to ask me.

---

<div class="post-metadata">

**Author:** ![bruno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/bruno/32/1028_2.png) [@bruno](https://community.kinsta.com/u/bruno)\
**Post date:** [April 5, 2022, 5:16pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/4 "2022-04-05T17:16:46Z")

</div>

I saw that you are a member of the Kinsta staff.

I have created a back office access eventually to take a closer look if needed and if we have the possibility to discuss in private.

Sincerely

---

<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:** [April 5, 2022, 7:42pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/5 "2022-04-05T19:42:31Z")

</div>

Thank you Bruno.

Okay can you start from your Staging site then remove this line from your wp-config.php file? I believe it is only needed if you are using a multisite:

`define( 'DOMAIN_CURRENT_SITE', 'staging-[site].kinsta.cloud' );`

Then, can you deactivate all Plugins on Staging. After that please try Pulling the website from Kinsta Staging to DevKinsta.

Are the plugins all deactivated still? I’m trying to see if there is indeed an issue with the version of files/database.

---

<div class="post-metadata">

**Author:** ![bruno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/bruno/32/1028_2.png) [@bruno](https://community.kinsta.com/u/bruno)\
**Post date:** [April 6, 2022, 4:51am UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/6 "2022-04-06T04:51:44Z")

</div>

Hello Kevin,  
Thank you for your help.

I proceeded as follows:  
1 - I deleted the line in the config.php file  
2 - I deactivated all the extensions  
3 - I imported the staging site from devkinsta  
4 - Once imported, I am unfortunately redirected to the staging site instead of the local site, and the imported site does not correspond to the version

So this is unfortunately not solved.  
Could you possibly have another solution for me?

Thanks

---

<div class="post-metadata">

**Author:** ![bruno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/bruno/32/1028_2.png) [@bruno](https://community.kinsta.com/u/bruno)\
**Post date:** [April 6, 2022, 10:03am UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/7 "2022-04-06T10:03:17Z")

</div>

Hello Kevin,  
As mentioned this morning, the import of the staging to devkinsta is still not working.

Thinking about it, I can perhaps proceed in another way to make local backups of my site.

With a backup plugin that sends backups to Google Drive it could work like this:  
Google Drive =\> DevKinsta =\> Site staging =\>Site live

So, if I have a problem with my local site with DevKinsta, I can go back with my Google Drive backup. Do you get it? And that’s the main goal.

I really want to thank you for your time, it’s very nice.

One last little question if it’s possible and you don’t mind, in devkinsta, phpmyadmin, how to delete a database? Because indeed, the various imports, there are still databases, I would like to delete them, you know how to do?

Thanks in advance  
Good day to you  
Sincerely

---

<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:** [April 6, 2022, 4:53pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/8 "2022-04-06T16:53:47Z")

</div>

Hi @bruno, thank you for the follow-up. I’m still not sure what is going wrong with the transfer. Please let me know if you would still like to troubleshoot this with us. There’s a chance something is wrong on the MyKinsta side if you are receiving a different version of your site.

But yes, you can do the transfer that way. I believe you could also use this plugin/process: [How to Migrate to Kinsta with the WordPress Duplicator Plugin](https://kinsta.com/help/migrate-wordpress-duplicator-plugin/)

So if you have no other websites in DevKinsta, you can actually just Clean/Reset Docker Desktop. This will delete ALL of the databases. When you start DevKinsta again, it will recreate the databases.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/a/ac648b15bed7a4c11d94d743ba5ab5a8d4115490.png)

In DevKinsta, if you click on the “three dots,” you get the option to Delete the site as well which will delete the database  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/4/487c6bec289c70cd107b0903bf04c9f55ce14cb9.png)

Those are the simplest ways to delete databases but please let us know if you run into any issues!

---

<div class="post-metadata">

**Author:** ![bruno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/bruno/32/1028_2.png) [@bruno](https://community.kinsta.com/u/bruno)\
**Post date:** [April 6, 2022, 5:54pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/9 "2022-04-06T17:54:19Z")

</div>

Good evening Kevin,  
Yes indeed, there must be a problem with Mykinsta because it is not normal that devkinsta imports a different version. I’m willing to try to solve the problem if you don’t mind.

Another thing is that the local site is very slow. So it’s not easy.

Concerning the databases, I don’t want to delete all of them, just the ones that are not used and I don’t know how to do it.

---

<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:** [April 6, 2022, 9:38pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/10 "2022-04-06T21:38:39Z")

</div>

@bruno, can you share a screenshot of where you are seeing the databases?

Does deleting the Site not delete the database for you?

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/1/1e1334ed278b788703e0fca870c534d6ee1ffefc.png)

If you want to do it manually, you would need to connect to the `devkinsta_db` container then manually drop the correct databases.

If you hover over devkinsta\_db, you would need to click on “cli”

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/0/0eaa71ea1d8145d55b2872fb2fbda5bedfa1c3a1.png)

From here you would enter the command `mysql -p`  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/1/16671cddba29fb98b5547bbe30d9824cfbc6e14b.png)

The database **password** can be found under Site Info for any of your websites in DevKinsta

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/f/f75294daaf692ab0cc21594b3d1e42f82da9058b.png)

It will look like this once you log in

 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/a/a8e73161a7f14fd6eccfd5e8cf9749901fce5ade.png)

In order to list the databases you can use the command `show databases;`

To “delete” a database you use the command `drop database databasenamehere;`  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/6/6ca4314e2c003bc2e93192afe873d8100078e7ef.png)

---

<div class="post-metadata">

**Author:** ![bruno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/bruno/32/1028_2.png) [@bruno](https://community.kinsta.com/u/bruno)\
**Post date:** [April 7, 2022, 5:51am UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/11 "2022-04-07T05:51:33Z")

</div>

Hello kevin,  
Thank you for these precisions.

I think it’s ok, only the database is needed.

---

<div class="post-metadata">

**Author:** ![bruno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/bruno/32/1028_2.png) [@bruno](https://community.kinsta.com/u/bruno)\
**Post date:** [April 10, 2022, 4:59pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/12 "2022-04-10T16:59:01Z")

</div>

Good evening Kevin,  
My local develop site is push to the staging site.

On the staging version the site has good performance, it is fast.

On the other hand, in local, it is very slow. Would you have any advice to help me?

One question I have is that all PHP extensions are activated, is this normal? Does it slow down the site?

Thanks

---

<div class="post-metadata">

**Author:** ![bruno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/bruno/32/1028_2.png) [@bruno](https://community.kinsta.com/u/bruno)\
**Post date:** [April 10, 2022, 5:31pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/13 "2022-04-10T17:31:18Z")

</div>

![Sans nom-1](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/4/4be1556d4bc354fd8a554497a451a9051d6d9173.png)

---

<div class="post-metadata">

**Author:** ![bruno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/bruno/32/1028_2.png) [@bruno](https://community.kinsta.com/u/bruno)\
**Post date:** [April 10, 2022, 5:33pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/14 "2022-04-10T17:33:47Z")

</div>

I specify that the computer is fast, it is not a problem machine

---

<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:** [April 21, 2022, 11:17pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/15 "2022-04-21T23:17:14Z")

</div>

Hi @bruno, I’m closing this topic just to make things easier. I mentioned a few things in our private message but David also helped here: [Site in local with DevKinsta very slow](https://community.kinsta.com/t/site-in-local-with-devkinsta-very-slow/1414)

Please feel free to reply to that thread with more questions/concerns

---

<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:** [April 21, 2022, 11:17pm UTC](https://community.kinsta.com/t/import-from-devkinsta-staging-local/1400/16 "2022-04-21T23:17:20Z")

</div>


