# DK0066: IMPORT\_DB\_DUMP: Error (1): (ERROR at line 1: Unknown command '\\-'

**URL:** <https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491>\
**Category:** Application Support\
**Created:** [May 29, 2024, 6:04pm UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491 "2024-05-29T18:04:50Z")\
**Posts on this page:** 20\
**Page:** 3

<div class="post-metadata">

**Author:** ![LeeKIJO](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/leekijo/32/5381_2.png) [@LeeKIJO](https://community.kinsta.com/u/LeeKIJO)\
**Post date:** [August 29, 2024, 7:24pm UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/51 "2024-08-29T19:24:12Z")

</div>

I have attempted to delete all containers and images and a full reset. I know just get “errors”.

---

<div class="post-metadata">

**Author:** ![Adrian\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adrian_l/32/2810_2.png) [@Adrian\_L](https://community.kinsta.com/u/Adrian_L)\
**Post date:** [August 30, 2024, 5:39am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/52 "2024-08-30T05:39:22Z")

</div>

You may try the solution from @BocaJuniors through the link below. I tried the same solution on my end and it worked.

> [@Question about 2.13.14](https://community.kinsta.com/t/question-about-2-13-14/3846/7):
>
> DISCLAIMER: This may destroy your data, I am not a MariaDB expert and this solution is specific to this Devkinsta issue and MariaDB 10.5.17 (version \<10.8). Deleting the file ib\_logfile0 is not a trivial action. Caveat: I did not update my sites or data at all after this Devkinsta issue presented itself. I’m not sure the consequences of doing the following if you’ve been restoring/importing backups. I am on macOS Sonoma. Here is what I did to get DevKinsta working and be able to get my data ou…

---

<div class="post-metadata">

**Author:** ![LeeKIJO](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/leekijo/32/5381_2.png) [@LeeKIJO](https://community.kinsta.com/u/LeeKIJO)\
**Post date:** [August 30, 2024, 8:05am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/53 "2024-08-30T08:05:06Z")

</div>

I think this has worked!

---

<div class="post-metadata">

**Author:** ![merineth](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/merineth/32/3022_2.png) [@merineth](https://community.kinsta.com/u/merineth)\
**Post date:** [August 31, 2024, 2:35am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/54 "2024-08-31T02:35:36Z")

</div>

@LeeKIJO Great to know that this has worked for you.

If ever you have further questions or encountered some issues, please let us know.

---

<div class="post-metadata">

**Author:** ![jarno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jarno/32/4097_2.png) [@jarno](https://community.kinsta.com/u/jarno)\
**Post date:** [September 20, 2024, 10:43am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/55 "2024-09-20T10:43:34Z")

</div>

Hi all,

I’ve tried all the solutions above, but nothing helps. I also read that the latest DevKinsta update should fix this issue, but that’s not the case for me.

ANy other fixes available? I’m not able to pull sites now.

---

<div class="post-metadata">

**Author:** ![Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andrew/32/2792_2.png) [@Andrew](https://community.kinsta.com/u/Andrew)\
**Post date:** [September 21, 2024, 2:16am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/56 "2024-09-21T02:16:03Z")

</div>

Hi @jarno! Thank you for your reply!

I’m sorry to hear that this issue is persisting for you. We are happy to help further investigate into this matter with you.

I would like to review the latest main.log file of your DevKinsta installation to see more details about the current issue occurring. If you could please direct/private message me this file that will assist us in the investigation.

The path of the main.log file does vary depending on if you are running DevKinsta on Windows or Mac. Below, you may find a link to our help article that provides the path to this file for both platforms:

> **[Troubleshooting - Error Codes - Kinsta® Docs](https://kinsta.com/docs/devkinsta/devkinsta-troubleshooting/error-codes/)**
>
> Find out what error codes may be returned in DevKinsta, what each of them means, and how you can fix them.

We look forward to hearing from you!

Best regards

---

<div class="post-metadata">

**Author:** ![Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andrew/32/2792_2.png) [@Andrew](https://community.kinsta.com/u/Andrew)\
**Post date:** [September 27, 2024, 1:23am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/58 "2024-09-27T01:23:19Z")

</div>

Thank you for sending me the log, @jarno!

After reviewing the main.log file I am seeing several errors mentioning a JSON syntax error is occurring. We are investigating into this further with our team and we will update you as soon as possible once we have more details to share.

We do appreciate your patience while we investigate into this matter further.

If you do have any questions in the meantime please don’t hesitate to reply.

Best regards

---

<div class="post-metadata">

**Author:** ![Diamir](https://avatars.discourse-cdn.com/v4/letter/d/ccd318/32.png) [@Diamir](https://community.kinsta.com/u/Diamir)\
**Post date:** [October 11, 2024, 9:52pm UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/60 "2024-10-11T21:52:46Z")

</div>

I’m having a lot of performance problems with Kinsta. It’s impossible to use WPML’s automatic translation tool properly, for example! Support told me to do it locally with Devkinsta …

But I’m getting this error that prevents me from doing it locally!

I’m losing days and days of development, and it’s getting very frustrating.

Here are the logs:

> **[pb kinsta 1 - Pastebin.com](https://pastebin.com/5FT7n70c)**
>
> Pastebin.com is the number one paste tool since 2002. Pastebin is a website where you can store text online for a set period of time.

Do you have a solution please?

---

<div class="post-metadata">

**Author:** ![Andrew](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/andrew/32/2792_2.png) [@Andrew](https://community.kinsta.com/u/Andrew)\
**Post date:** [October 13, 2024, 2:36am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/61 "2024-10-13T02:36:24Z")

</div>

Hi @Diamir! Thank you for your reply.

I’m sorry to hear that you are experiencing this difficulty with importing your site into DevKinsta. I understand that this can be a frustrating situation. I assure you however we are here and happy to help look into what solutions are possible.

To help us get started could you please confirm the following information?

**DevKinsta version**

**Operating system version**

**Docker version**

Having this information will assist us in our investigation.

We look forward to hearing from you!

---

<div class="post-metadata">

**Author:** ![jarno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jarno/32/4097_2.png) [@jarno](https://community.kinsta.com/u/jarno)\
**Post date:** [October 22, 2024, 1:37pm UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/62 "2024-10-22T13:37:03Z")

</div>

Hi Andrew, do you have an update? I’m still not able to pull this site from Kinsta.

---

<div class="post-metadata">

**Author:** ![Adrian\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adrian_l/32/2810_2.png) [@Adrian\_L](https://community.kinsta.com/u/Adrian_L)\
**Post date:** [October 23, 2024, 12:44am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/63 "2024-10-23T00:44:14Z")

</div>

Hi @jarno can you send me via private message the latest DevKinsta main.log and the domain name of the Kinsta site you’re trying to pull to the DevKinsta app? Thanks!

---

<div class="post-metadata">

**Author:** ![Adrian\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adrian_l/32/2810_2.png) [@Adrian\_L](https://community.kinsta.com/u/Adrian_L)\
**Post date:** [October 25, 2024, 3:16am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/65 "2024-10-25T03:16:04Z")

</div>

Hi @jarno,

Thank you for sharing the main.log file. I reviewed it and found that the Kinsta site import to the Devkinsta app is failing at the MySQL import step due to this problematic line in the SQL file.

`/*!999999\- enable the sandbox mode */`

This issue is supposed to be resolved in the latest version of Devkinsta (2.13.4).

Could you please confirm whether you are using the latest version of the Devkinsta app? Thanks!

---

<div class="post-metadata">

**Author:** ![jarno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jarno/32/4097_2.png) [@jarno](https://community.kinsta.com/u/jarno)\
**Post date:** [November 4, 2024, 9:36am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/66 "2024-11-04T09:36:45Z")

</div>

Hi there,

I can confirm that this is NOT fixed in DevKinsta 2.13.4. The only workaround is to manually remove that line from the backup.sql file on the server during the import.

---

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [November 4, 2024, 1:11pm UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/67 "2024-11-04T13:11:50Z")

</div>

Hello Jarno 👋

Sorry to hear this, we will try to replicate this and forward the information to our developers for further review.

Kind regards

---

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [November 6, 2024, 8:57am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/69 "2024-11-06T08:57:04Z")

</div>

Hello again @jarno 👋

Apologies for the delayed response.

I’ve tested this on both Mac (OS Sonoma 14.3) and Win10. I made sure that the site, or rather it’s SQL dump, contains the line /\*M!999999- enable the sandbox mode \*/ (the M was there when I tested an export on your site, I didn’t add it).

I was able to pull the site from Kinsta to DevKinsta successfully on both Mac and Win machine.

Can you please tell me the exact operating system, docker version and DevKinsta version (you stated you are using the latest version) you are using?

Kind regards

---

<div class="post-metadata">

**Author:** ![taras](https://avatars.discourse-cdn.com/v4/letter/t/53a042/32.png) [@taras](https://community.kinsta.com/u/taras)\
**Post date:** [November 6, 2024, 9:57pm UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/70 "2024-11-06T21:57:51Z")

</div>

I can confirm that the issue is not fixed. It’s shocking that I opened this thread in the end of May, and now is November and still not able to clone a website using DevKinsta 🤯

`backup.sql` file still includes `/*!999999\- enable the sandbox mode */ ` at the top of the file.

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

Also, there is no DevKinsta log file at `/Users/<yourusername>/Library/Logs/DevKinsta` (as it mentioned in [docs](https://kinsta.com/docs/devkinsta/devkinsta-troubleshooting/error-codes/#dk0066))

- Docker Desktop 4.5.0
- DevKinsta 2.13.4
- macOS Sequoia

---

<div class="post-metadata">

**Author:** ![Adrian\_L](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/adrian_l/32/2810_2.png) [@Adrian\_L](https://community.kinsta.com/u/Adrian_L)\
**Post date:** [November 7, 2024, 4:23am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/71 "2024-11-07T04:23:45Z")

</div>

Hi @taras, I am sorry to hear that you are still facing this issue. However, we still couldn’t replicate this issue with this machine:

- Docker Desktop 4.35.1 (4.35.1 seems the latest version based on [Docker Desktop release notes](https://docs.docker.com/desktop/release-notes/))
- DevKinsta 2.13.4
- macOS Sequoia  
 ![image](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/0/049a1ff6afb5dcda1f5bd0d8f96755eed4b00231.jpeg)

I have the following default settings set in the Docker Desktop.

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

If the issue continues after you’ve checked the Docker Desktop settings, it may be best to completely uninstall and then reinstall both DevKinsta and Docker Desktop. Before uninstalling the applications, please create a backup of your local sites to avoid losing any data.

Please let us know how it goes.

---

<div class="post-metadata">

**Author:** ![jarno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jarno/32/4097_2.png) [@jarno](https://community.kinsta.com/u/jarno)\
**Post date:** [November 8, 2024, 11:55am UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/72 "2024-11-08T11:55:51Z")

</div>

@Adrian_L I fully agree with @taras. I just purchased a new MacBook Pro, with a fresh installation of Docker Desktop and DevKinsta.

I was able to pull a site that doesn’t contain that line in the .sql dump successfully, but I get the same error on the specific site that does contain that line.

I also checked my Docker Desktop settings, and set them to the same settings as in the screenshot.

I’m still not able to pull this site.

---

<div class="post-metadata">

**Author:** ![VladimirM](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/vladimirm/32/2786_2.png) [@VladimirM](https://community.kinsta.com/u/VladimirM)\
**Post date:** [November 8, 2024, 12:57pm UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/73 "2024-11-08T12:57:29Z")

</div>

Hello @jarno and @taras 👋

I’m sorry that this issue still persists. I have noticed that when I export the database it does have the line `/*!999999\- enable the sandbox mode */` However, after I import it to my test site and then export the db again on my test site, the line is edited automatically with M being added after /\* - it turns too `/*M!999999\- enable the sandbox mode */` which is probably why I don’t get the error when trying to pull the site from Kinsta.

I believe that the issue exists on your end, but it is not due to the bug in the app itself. It is somehow specific to those sites for some reason, which we haven’t been able to determine.

If you are experiencing this on the live site:

- make a staging (or refresh the existing staging so it would be an exact copy of the live site).
- If the issue persists, log in via SSH, export the db with `wp db export`, then use the `wp db clean` command and lastly use `wp db import filename.sql` (where filename is the actual filename of the exported database)
- Once that is done, try pulling the site again from Kinsta.

I understand that this is frustrating, especially since we repeated a few times that the bug was fixed. We absolutely acknowledge that you are still experiencing this issue, however, the bug is definitely fixed, this seems to happen only with specific sites.

As such I wanted to address that DevKinsta is a free product, currently only in Maintenance Mode, which means that developers are only working on security updates and bugs. We are not able to fix site-specific issues due to that, but we try to help any way we can. Please try the above workaround and let me know if that works.

---

<div class="post-metadata">

**Author:** ![jarno](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/jarno/32/4097_2.png) [@jarno](https://community.kinsta.com/u/jarno)\
**Post date:** [November 8, 2024, 2:13pm UTC](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491/74 "2024-11-08T14:13:32Z")

</div>

Hi @VladimirM - I followed the steps, but unfortunately I get the same error when pulling the staging environment after running wp db export - wp db clean - wp db import.

[Previous page](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491.md?page=2)

[Next page](https://community.kinsta.com/t/dk0066-import-db-dump-error-1-error-at-line-1-unknown-command/3491.md?page=4)
