When I try to run
wp db reset in a terminal (using Open Site Shell) I get the error
Can't connect to local MySQL server through socket '/tmp/mysql.sock' (2)
wp db import and
wp db export work as expected.
Open the site shell and run
wp db reset
Describe your environment.
- What Operating System are you using?
Mac OS 10.15.7
- What versions of site software (Nginx, Apache, PHP, MySQL) is used?
- What version of Local is installed?
I’ve also tried placing the following in a wp-cli.yml in the
/public directory for my site as I found suggested somewhere…
db reset: socket: /Users/reggieofarrell/Library/Application Support/Local/run/0aiZUbn5Q/mysql/mysqld.sock
…but that didn’t seem to change anything
Trying to add the --socket flat on the command line while running the command like so…
wp db reset --socket=" /Users/reggieofarrell/Library/Application Support/Local/run/0aiZUbn5Q/mysql/mysqld.sock"
Error: Parameter errors:
unknown --socket parameter
Please provide your Local Log. See this Community Forum post for instructions on how to do so:
How do I retrieve Local’s Log?
Seems a bit large to post here? Almost 1mb
Include any screenshots or video recordings of the issue to help others reproduce.