I'm trying to import a database locally using wp db import databasename.sql
but I get the following error: env: mysql: No such file or directory
. Can anyone tell me how to resolve this?
I resolved this by changing my $PATH, run this in command or update your .bash_profile
:
export PATH=$PATH:/usr/local/mysql/bin
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With