wp-cli with MAMP shows sh: mysql: command not found

It looks like you probably don’t have mysql in your path.
From the command prompt, you should be able to run ‘mysql’ and enter the mysql interactive environment. If you see something like ‘command not found.’ then keep working on that path.

There are few different ways to set up your path, I prefer to update the system PATH environment variable so that it become a one-time-thing. (google it – it is a pain on both Windows or Mac).

This post (https://stackoverflow.com/questions/17664021/mysql-command-not-found-mamp) suggests your proper path is something like this.. PATH=$PATH:/Applications/MAMP/Library/bin

Good luck

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)