Errors when trying to do mysqldump via shell script

Hi @coreyallen!

Looks like those PHP issues are due to using the system PHP instead of the PHP binaries we ship with Local. When you open a Site Shell from Local, we modify the $PATH variable to add our binaries. Normally I’d ask you to check your shell configuration (.bashrc or .zshrc) to make sure you’re not overriding our config, but I’m not seeing our binaries in your $PATH at all.

Can you confirm the output you’re seeing when you open a site shell via the “Open site shell” button? It should look something like this:

Setting Local environment variables...
----
WP-CLI:   WP-CLI 2.9.0
Composer: 2.6.2 2023-09-03
PHP:      8.1.23
MySQL:    mysql  Ver 8.0.16 for macos10.14 on x86_64 (MySQL Community Server - GPL)
----
Launching shell: /bin/zsh ...
1 Like