How do I access the mysql commandline tool with XAMPP VM on mac?

I am just beginning to learn about databases and I installed XAMPP on my macBook for that purpose. I would like to use the ‘mysql’ commandline tool but my installation of XAMPP is ran as a separate VM which means that I don’t have a path from /Applications/XAMPP/xamppfiles/bin/mysql available. The closest thing I have been able to find is the path to this root directory :


which contains a bin folder leading to a mysql file.


Could I use that path to run the commandline tool or am I missing something?


If you click on the ‘Open Terminal’ Button inside your XAMPP App you can simply call mysql with mysql -u root.