This is similar to an existing support request where I’m receiving an error that says Please try again with a compatible ZIP file.
What steps can be taken to replicate the issue?
- Local app on MacOS - right-click on site, Export, then click “Export site” button
- Transfer zip file from Mac to Windows
- Ctrl-I (Import) from Local app on Windows
- Choose exported zip file from above
- Confirm settings and click Import button
I’ve tried this probably 5 times, same result where I receive the error message stated above about a compatible ZIP file.
I’ve tried a more manual approach as well, as @Nick-B usually suggests.
- Created a new, blank site in Local
- Copied
wp-content
into existing directory - Copied the SQL file into site root
- Opened the site shell
- Ran wp db import
filename.sql
The error I continually get here says Error: Failed to get current SQL modes. Reason: ERROR 2003 (HY000): Can't connect to MySQL server on 'localhost' (10061)
Remaining questions:
- Why isn’t it straightforward to migrate a site to another Local instance using export and import?
- Does exported file size matter? My zip file is about 9GB.
- On Windows, is there another server name I need to use for using MySQL to import the SQL database?
It’s really disappointing this process isn’t working after multiple attempts and methods.
System Details
-
Original Local Version: 7.1.0+6396
-
Destination Local Version: 7.1.2+6410
-
Original Operating System (OS) and OS version: MacOS 13.4
-
Destination Operating System (OS) and OS version: Windows 10 22H2
Local Logs
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-08-15T18:55:53.339145Z 0 [System] [MY-010116] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+6\\bin\\win64\\bin\\mysqld.exe (mysqld 8.0.16) starting as process 13996","timestamp":"2023-08-15T18:55:57.884Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-08-15T18:55:53.437918Z 0 [Warning] [MY-013243] [Server] --character-set-server: The character set UTF8MB3 is deprecated and will be removed in a future release. Please consider using UTF8MB4 instead.","timestamp":"2023-08-15T18:55:57.885Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-08-15T18:55:56.099155Z 0 [System] [MY-010229] [Server] Starting crash recovery...","timestamp":"2023-08-15T18:55:57.889Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-08-15T18:55:56.113122Z 0 [System] [MY-010232] [Server] Crash recovery finished.","timestamp":"2023-08-15T18:55:57.890Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-08-15T18:55:57.714590Z 0 [Warning] [MY-010068] [Server] CA certificate ca.pem is self signed.","timestamp":"2023-08-15T18:55:57.892Z"}
{"thread":"main","class":"Process","process":"mysql","level":"warn","message":"2023-08-15T18:55:57.886593Z 0 [System] [MY-010931] [Server] %%resourcesPath%%\\lightning-services\\mysql-8.0.16+6\\bin\\win64\\bin\\mysqld.exe: ready for connections. Version: '8.0.16' socket: '' port: 10004 MySQL Community Server - GPL.","timestamp":"2023-08-15T18:55:57.894Z"}
{"stack":"Error: EPERM: operation not permitted, symlink '..\\acorn\\bin\\acorn' -> 'C:\\Users\\info\\AppData\\Local\\Temp\\local-by-flywheel-bqaQeVSRV5\\app\\public\\node_modules\\.bin\\acorn'","level":"warn","message":"Unable to import site.","timestamp":"2023-08-15T20:28:36.532Z"}
{"thread":"main","class":"DeleteSiteService","level":"warn","message":"Could not trash","timestamp":"2023-08-15T20:28:43.607Z"}