On Windows 10 x64 (though I believe this applies to every Windows version) I can’t create a new local site because my Windows username has non-latin characters (C.\Users\Barış Ünver\
). Gives an error of “Can’t create directory” with the error box, and says “Local needs administrative privileges to modify your etc/hosts file” (but that’s not the issue).
Because I’m kind of used to software developers not caring about non-latin characters in general, I was half sure that my user name was the culprit. Creating another username (C:\Users\dev
), and being able to creating a new site after logging in with that user, proves that the issue’s directly related to non-latin characters in usernames.
Here’s the full error message, if it helps any further:
Error: Error: Command failed: D:\LocalByFlywheel\resources\extraResources\lightning-services\mysql-8.0.16+3\bin\win64\bin\mysqld.exe --defaults-file=C:\Users\Barış Ünver\AppData\Roaming\Local\run\S7nQvQ2V4\conf\mysql\my.cnf --initialize-insecure mysqld: Can't create directory 'C:\Users\Barış Ünver\AppData\Roaming\Local un\S7nQvQ2V4\mysql\data\' (OS errno 2 - No such file or directory) 2020-04-12T15:54:21.215764Z 0 [System] [MY-013169] [Server] D:\LocalByFlywheel\resources\extraResources\lightning-services\mysql-8.0.16+3\bin\win64\bin\mysqld.exe (mysqld 8.0.16) initializing of server in progress as process 14444 2020-04-12T15:54:21.216880Z 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. 2020-04-12T15:54:21.217577Z 0 [ERROR] [MY-013236] [Server] Newly created data directory C:\Users\Barış Ünver\AppData\Roaming\Local un\S7nQvQ2V4\mysql\data\ is unusable. You can safely remove it. 2020-04-12T15:54:21.217993Z 0 [ERROR] [MY-010119] [Server] Aborting 2020-04-12T15:54:21.218191Z 0 [System] [MY-010910] [Server] D:\LocalByFlywheel\resources\extraResources\lightning-services\mysql-8.0.16+3\bin\win64\bin\mysqld.exe: Shutdown complete (mysqld 8.0.16) MySQL Community Server - GPL. at ChildProcess.exithandler (child_process.js:308:12) at ChildProcess.emit (events.js:203:13) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5) at ChildProcess.exithandler (child_process.js:308:12) at ChildProcess.emit (events.js:203:13) at maybeClose (internal/child_process.js:1021:16) at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
PS: Even though I installed Local in a different drive (D:\LocalByFlywheel\
as you can see in the error message), it still uses a user folder to download MySQL or something. Is this on purpose?