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!