I had set the MySQL path, but still getting the same error. Please let me know whether I followed the correct one or not.
MySQL location is: C:\\Program Files\
C:\\Program Files\
In my case, I resolved it by adding this path C:\xampp\mysql\bin to system variables path and then restarted pash/cmd.
C:\xampp\mysql\bin
system variables
pash/cmd
Note: Click me if you don't know how to set the path and system variables.