On Windows running a command from command prompt is straightforward. Will simply type the name of the exe file. For example command.exe (this will run the command/program).
On Mac, when the file is sitting in the current folder, the file will not run if you just provide the file name. You have to specify the complete path of the file in order to run it. Not sure why is this (may be safety?). If the file is in the current folder/directory, there is an easy trick. Simply provide the dot operator (.) followed by forward slash.
Example: cd /Applications/XAMPP/xamppfiles/bin
See what is the directory: Issue ‘ls’ command (without comma’s)
Notice there is : mysql command, to run this type
./mysql