Follow those steps in order to be able to run MySQL commands from your Windows Terminal.
- Locate your MySQL installation directory
- Navigate to \bin folder and copy the path.
- Open Environment variables on Windows, in System Properties.
- Edit Path
- Add new, and paste the path you have copied in step 2.
- Restart your Terminal
I encountered this issue while trying to dump my database schema in Laravel.
The command was not recognizable.
In my case, I was using XAMPP, and my path was: