Cant import new website

Hello DevKinsta community,

I’m encountering an issue when importing a WordPress site from Kinsta. When I try to create a new site, I get a DK0066 error during the database import.

Error logs:

[2025-04-02 17:07:56.991] [info] [checkWpVersion] site's current version [31;1mError:[0m This does not seem to be a WordPress installation.Pass --path=`path/to/wordpress` or run `wp core download`.
[2025-04-02 17:13:12.697] [info] [containerExec] Command 'mysql -h devkinsta_db -u root -p****** x_refonte < "/www/kinsta/public/xrefonte/backup.sql"' on devkinsta_fpm finished with exit code 1
[2025-04-02 17:13:12.698] [error] Error - DK0066: IMPORT_DB_DUMP: Error (1): (ERROR at line 1: Unknown command '\-'.

I’ve checked my backup.sql file and the first line contains:

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

The issue seems to be the \- character (backslash followed by a dash) which isn’t recognized by MySQL. How can I modify this file before DevKinsta attempts to import it automatically? As soon as I start the import, DevKinsta immediately begins the process and I don’t have time to edit the file.

I’ve successfully imported in the past other sites without issues. My environment is Windows with Hyper-V for virtualization.

Is there a way to edit the SQL file before importing or bypass this step so I can manually fix the file?

Thank you for your help!

Hi @bobi_bob_boby ! :wave: Welcome to the Kinsta Community.

At the moment, the best workaround that has been found for this issue has been to attempt to quickly edit the file before the import runs. Typically this is accomplished by having it open in an editor during the download process, and then saving over the file before the import is attempted: DK0066: IMPORT_DB_DUMP: Error (1): (ERROR at line 1: Unknown command '\-' - #37 by Allan_Crabtree

Unfortunately we don’t know exactly when this will be fully resolved, but it has been reported to our development team, so hopefully that will be resolved in a new release.