Make sure you have an Environment Variable PATH to your MySQL executables. Likely to be in C:\\Program Files\MySQL\MySQL Server 5.7\bin code example
Example: add mysql to path
For windows users only!
I had a lot of trouble for this one, but I found the solution.
Visit this page: https://overiq.com/installing-mysql-windows-linux-and-mac/
And then follow the steps, but instead of putting this (in step 5):
C:\Program Files\MySQL\MySQL Server x.y\bin\mysql.exe
Put this:
C:\Program Files\MySQL\MySQL Server x.y\bin