MySQL is installed inside xampp directory. In Mac OS it is installed on /applications/xampp/. All we need to do is add the mysql service to our PATH global variable.

  1. Run: nano ~/.bash_profile
  2. Add (or edit the line if it exists): export PATH=$PATH:/applications/xampp/xamppfiles/bin
  3. Save the file
  4. Run: mysql -u root (also -p myPass if it has a password defined).

To start, restart or stop the service you can run "sudo mysql.server [start/restart/stop]".

Ad blocker interference detected!

Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers

Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.