Error: "Uh-oh! Unable to start site." for sites using mysql5

Bug Summary

Can’t start sites that use MySQL 5.7.28, MySQL 8 sites work fine.

Error:

Uh-oh! Unable to start site.

Error: spawn /Users/me/Library/Application Support/Local/lightning-services/mysql-5.7.28+6/bin/darwin/bin/mysqladmin ENOENT
at ChildProcess._handle.onexit (node:internal/child_process:285:19)
at onErrorNT (node:internal/child_process:483:16)
at process.processTicksAndRejections (node:internal/process/task_queues:82:21)

Steps to reproduce

Click “Start Site”

Environment Info

Describe your environment.

macOS 15.3.2, PHP8.30

Supporting info

Log file is attached.
local-lightning.log (208.8 KB)

Thanks for your report, @taste.misrule.

When running macOS on Apple Silicon you will need Rosetta to use MySQL versions older than 8.0.35, because older versions are Intel-only. You can install it from the terminal like this:

softwareupdate --install-rosetta --agree-to-license

Then restart Local, and MySQL 5 or 8.0.16 should run for you.

Thanks for the quick answer, unfortunately it did not solve it:

Install of Rosetta 2 finished successfully

Still same error. I also tried to re-downloaded and reinstalled Local.app

Thanks for trying that, @taste.misrule.

I recommend restarting your machine after running softwareupdate --install-rosetta --agree-to-license.

If that does not help, also try removing the MySQL 5 directory:

rm -rf ~/Library/Application\ Support/Local/lightning-services/mysql-5*

Then restart Local, remove the old MySQL 5 site you tried to run and create a new site with MySQL 5 to force it to redownload.

1 Like

Thanks, that worked!

2 Likes

Thank you for letting us know @taste.misrule!

This topic was automatically closed 36 hours after the last reply. New replies are no longer allowed.