Cannot Start Local Y

Been having problems with local for years.

Error: Command failed: /Users/dalton/Library/Application Support/Local/lightning-services/mysql-8.0.16+6/bin/darwin/bin/mysqladmin ping

mysqladmin: connect to server at ‘localhost’ failed

error: ‘Can’t connect to local MySQL server through socket ‘/Users/dalton/Library/Application Support/Local/run/ur8ocuOQn/mysql/mysqld.sock’ (61)’

Check that mysqld is running and that the socket: ‘/Users/dalton/Library/Application Support/Local/run/ur8ocuOQn/mysql/mysqld.sock’ exists!

at ChildProcess.exithandler (node:child_process:430:12)

at ChildProcess.emit (node:events:513:28)

at maybeClose (node:internal/child_process:1091:16)

at ChildProcess._handle.onexit (node:internal/child_process:302:5)

Hi @braddalton

Are the problems you’ve been having for years always around this error message?

Could you share some more details with us here to help out?

  • What is your OS?

  • What version of Local are you on?

  • Please attach a copy of your Local Logs

Keep us posted and we’d be happy to help further!

Hi Nick

Yes, always the same problem.

Mac Os Bug Sur 11.7.1

Running the March version of Local because the latest doesn’t work for me.

logs.zip (36.2 KB)

Thank You

With the Local releases since then we’ve been seeing more problems with older MacOS versions and as such may soon raise our minimum requirement to MacOS 12 or newer. You can still utilize older Local releases as you have been until you’re able to update your OS, otherwise with a newer release you could try lower the PHP version to 8.0 or lower to see if that helps.

That being said, you mentioned having problems for “years” which would predate some of these changes so there could still be some underlying conflict at play.

When you run into this error have you done anything like restart Local, restart your machine, uninstall/reinstall, etc? Or have you tried manually checking MySQL?

Are you running other developer applications simultaneously? Apps like MAMP, XAMPP, or Docker for example.

I found the problem can normally be fixed when i restart my machine and then click local and wait 1 minute before i start site. If i click the link to the local site URL before its started and then try and start, thats when i get the error.

Not running any other developer apps.

Brad Dalton

Video Chat

Have you tested changing your Router Mode to see if that makes any difference?