Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

1 Answer 1

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.