Tips and Tricks

How to Add MySQL to Terminal

tips_tricks

Follow those steps in order to be able to run MySQL commands from your Windows Terminal.

  1. Locate your MySQL installation directory
  2. Navigate to \bin folder and copy the path.
  3. Open Environment variables on Windows, in System Properties.
  4. Edit Path
  5. Add new, and paste the path you have copied in step 2.
  6. 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:
D:\xampp\mysql\bin