HiveBrain v1.2.0
Get Started
← Back to all entries
snippetMinor

how to install mysql on mac?

Submitted by: @import:stackexchange-dba··
0
Viewed 0 times
mysqlinstallmachow

Problem

My Mac runs Mac OS X, version 10.7.5., so it's a 64 bit system.

First, I downloaded mysql-5.5.28-osx10.6-x86_64.dmg.

Then I double clicked mysql-5.5.28-osx10.6-x86_64.dmg, it's mounted, and shows

-
mysql-5.5.28-osx10.6-x86_64.pkg -> I double-clicked it to run, after clicked buttons a few times it's said to be successfully installed. However, I could not see anything in Applications.

-
MySqlStartupItem.pkg -> I double-clicked to run, also successfully done. However, I still could not see anything in Applications.

-
MySQL.prefPane -> I double-clicked it to run. Now I see a window jumped out, with a button Start/Stop MySQL Server, I clicked it, now it says "The MySQL Server Instance is running".

I'm a bit lost here:

Q1. Why until now there's nothing in the Applications? I can't see any item or folder like mysql there. Is it that every time I want to run mysql, I have to mount the installation package?

Q2. What did MySQLStartupItem.pkg install?

Q3. Are there any client side tools inside the installation package? I mean, for example, Microsoft SQL Server for Windows, there are Microsoft SQL Server; and there are Microsoft SQL Server Management Studio, which serves as a client tool to browse databases and doing queries; also, if I download "Microsoft SQL Server Express with Tools" package, it will install both. Does mysql-5.5.28-osx10.6-x86_64.dmg contain only the server, or also a client tool inside?

Solution

You can install it via Homebrew

brew install mysql


This will install the mysql deamon and the cli tool.

Code Snippets

brew install mysql

Context

StackExchange Database Administrators Q#28511, answer score: 4

Revisions (0)

No revisions yet.