I cannot use the site shell in the local container. It seems to be referencing outside the container ~/Local Sites/test/app/public which means the mysql sock used is from my machine, and not in the container.
What steps can be taken to replicate the issue? Feel free to include screenshots, videos, etc
I get a range of issues, however, I am unable to connect to wp db reset --yes because the mysql sock is using /tmp/mysql.sock rather than the local one.
❯ wp db reset --yes
Failed loading /Users/michael/Library/Application Support/Local/lightning-services/php-8.1.23+0/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20210902/opcache.so: dlopen(/Users/michael/Library/Application Support/Local/lightning-services/php-8.1.23+0/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20210902/opcache.so, 0x0009): symbol not found in flat namespace '_zend_alloc_ce_cache'
Failed loading /Users/michael/Library/Application Support/Local/lightning-services/php-8.1.23+0/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20210902/xdebug.so: dlopen(/Users/michael/Library/Application Support/Local/lightning-services/php-8.1.23+0/bin/darwin-arm64/lib/php/extensions/no-debug-non-zts-20210902/xdebug.so, 0x0009): symbol not found in flat namespace '_zend_is_graceful_exit'
Warning: PHP Startup: imagick: Unable to initialize module
Module compiled with module API=20210902
PHP compiled with module API=20200930
These options need to match
in Unknown on line 0
Error: Failed to get current SQL modes. Reason: ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
Local Version: 8.0.0
Operating System (OS) and OS version:
Mac OS Sonoma
Local does a pretty good job of scrubbing private info from the logs and the errors it produces, however there’s always the possibility that something private can come through. Because these are public forums, always review the screenshots you are sharing to make sure there isn’t private info like passwords being displayed.