Saturday, September 21, 2013

How to access MySQL via command line on Mac OS X

Accessing MySQL and running queries is pretty easy on mac units. Just follow the simple steps.

Step 1: Open terminal.app. Go to Applications > Utilities > Terminal.

Step 2: Type in cd / to go to your root directory.

Step 3: Type in the path of your MySQL.

/Applications/XAMPP/xamppfiles/bin/mysql -u root -p

Step 4: Enter your password.

Step 5. Voila! You can now run your sql queries.

No comments:

Post a Comment