Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Find out where MySQL is installed on Mac OS X

Tags:

mysql

macos

How do I find out where MySQL is installed on Mac OS X 10.7.9? I have MAMP installed so I presume that it is bundled with this install?

like image 353
weaveoftheride Avatar asked Apr 22 '13 10:04

weaveoftheride


People also ask

How do I know if MySQL is installed on my computer?

Step 2: Verify MySQL is Running on Windows A new window will launch and display the list of services available on your system. Scroll down to find MySQL, and check the status column. Left-click the MySQL service to highlight it, then right-click to open a context menu. Finally, left-click on start.


2 Answers

To check MySQL version of MAMP , use the following command in Terminal:

/Applications/MAMP/Library/bin/mysql --version

Assume you have started MAMP .

Example output:

./mysql  Ver 14.14 Distrib 5.1.44, for apple-darwin8.11.1 (i386) using  EditLine wrapper

UPDATE: Moreover, if you want to find where does mysql installed in system, use the following command:

type -a mysql

type -a is an equivalent of tclsh built-in command where in OS X bash shell. If MySQL is found, it will show :

mysql is /usr/bin/mysql

If not found, it will show:

-bash: type: mysql: not found

By default , MySQL is not installed in Mac OS X.

Sidenote: For XAMPP, the command should be:

/Applications/XAMPP/xamppfiles/bin/mysql --version
like image 164
Raptor Avatar answered Oct 03 '22 22:10

Raptor


It will be found in /usr/local/mysql if you use the mysql binaries or dmg to install it on your system instead of using MAMP

like image 80
Deb Avatar answered Oct 03 '22 22:10

Deb