Add MySQL path to System variables in Windows 10
Right-click "This Computer";
Click "Properties";
Click the "Advanced" tab;
Click "Environment Variables";
Select the “Path” variable in System variables;
Click “Edit”;
Click "New";
Paste "C:\Program Files\MySQL\MySQL Server 8.0\bin". *Confirm that the MySQL Server version number is the same as your installed one.