Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have downloaded the DMG from the mysql website for the 64-bit install, and installed successfully. Yet after installation, when I run

mysql --version

I get:

mysql  Ver 14.14 Distrib 5.1.52, for apple-darwin10.3.0 (i386) using readline 5.1

Which seems to me to indicate the 32-bit version is installed. What gives?

share|improve this question
up vote 1 down vote accepted

In a nutshell, what gives is that your OS X kernel is running in 32-bit. Check using uname -m. See this SO answer. However, applications may run in 64-bit. Use file on your mysql binary. For example, a universal binary would come up as:

$ file /usr/bin/tar
/usr/bin/tar: Mach-O universal binary with 3 architectures
/usr/bin/tar (for architecture x86_64): Mach-O 64-bit executable x86_64
/usr/bin/tar (for architecture i386):   Mach-O executable i386
/usr/bin/tar (for architecture ppc7400):    Mach-O executable ppc

A 64-bit binary (installed using MacPorts):

$ file /opt/local/bin/python
/opt/local/bin/python: Mach-O 64-bit executable x86_64
share|improve this answer
    
You're right, my kernel is running in 32-bit mode. How do I change that? – Neil Dec 1 '10 at 5:31
    
Here is an article about how to do so: macperformanceguide.com/SnowLeopard-64bit.html – Madison S Dec 1 '10 at 13:25

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .