Can't create or connect to site - mysqld / mysqladmin error

This was also raised here
Uh-Oh! unable to start site PLS HELP! - Support - Local Community

there’s an error trying to connect to or create a new site

What issue or error are you experiencing?

amysqladmin: connect to server at '::1' failed
error: 'Can't connect to MySQL server on '::1:10005' (10061)'
Check that mysqld is running on ::1 and that the port is 10005.
You can check this by doing 'telnet ::1 10005'

    at ChildProcess.exithandler (node:child_process:422:12)
    at ChildProcess.emit (node:events:517:28)
    at maybeClose (node:internal/child_process:1098:16)
    at ChildProcess._handle.onexit (node:internal/child_process:303:5)

What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc

install latest local on Windows 11
try connect or create a site


System Details

  • Local Version:
    Version 9.2.0+6762

  • Operating System (OS) and OS version:
    Windows 11 Home 24H2


Local Logs

Attach your Local Logs here (Help Doc - Retrieving Local’s Log)
local-lightning.log (8.4 KB)


running mysqld we can see the “data” folder doesn’t exist in the mysql installation and the file can’t be written eg
[MY-010091] [Server] Can't create test file C:\Users\jmp90\AppData\Roaming\Local\lightning-services\mysql-8.0.35+0\bin\win64\data\mysqld_tmp_file_case_insensitive_test.lower-test

also if we create the “data” folder manually and run mysqld again we then get this error

mysqld: Can't open shared library 'C:\Users\jmp90\AppData\Roaming\Local\lightning-services\mysql-8.0.35+0\bin\win64\lib\plugin\component_reference_cache.dll' (errno: 126 The specified module could not be found.)
mysqld: Cannot load component from specified URN: 'file://component_reference_cache'.

there is no “lib” folder within
AppData\Roaming\Local\lightning-services\mysql-8.0.35+0\bin\win64

switched back to Local 9.1.1 and it worked fine

there’s an issue with 9.2.0 and its new version of mysql

How did you switch back to local 9.1.1

1 Like

seem to have the same issue. Updated to 9.2.0 on Windows 10, and I can no longer connect. Logs indicate trying to access a file that doesn’t exist with this latest version. Will try to downgrade.

mysqld: Can't open shared library '%%userDataPath%%\\lightning-services\\mysql-8.0.35+0\\bin\\win64\\lib\\plugin\\component_reference_cache.dll' (errno: 126 The specified module could not be found.)

1 Like

Maybe there’s a better way to do it, but I just ran the 9.1.1 installer, then modified the sites.json file in C:\Users\<user>\AppData\Roaming\Local and replaced all of the 8.0.35 strings with 8.0.16.

Downgrading to 9.1.1 did work for me. Mysql 8.0.35 is broken on Windows in 9.2.0.

1 Like

Thanks for this info, @jonc. We tested this with Windows 11 without issue, but we’ll look into the missing .dll to potentially add it in an upcoming 9.2.1 update.

2 Likes

Just noting that I experienced the same issue on Windows 10 Pro and jonc’s fix worked for me. Downgraded from 9.2.0 to 9.1.1 (from Releases - Local) and then did a find and replace for the mysql version in sites.json.