If you are developing a MySQL client application for Mac OS X Server v10.6, you'll need to download the MySQL client libraries and headers. MySQL client libraries and headers are not included with Mac OS X Server v10.6.
If you are running Mac OS X Server v10.5 through 10.5.4, please refer to this article for instructions about installing the relevant client libraries.
If you are running Mac OS X Server v10.5.5 or later, please refer to this article for instructions about installing the relevant client libraries.
The MySQL client libraries and headers are available for download and installation from (http://www.opensource.apple.com/).
- The MySQL sources are available from (http://www.opensource.apple.com/source/MySQL/), and also include instructions on using the supplied Makefile.
- A binary download that can be installed on Mac OS X Server v10.6 through 10.6.2 is available from (http://www.opensource.apple.com/other/MySQL-49.binaries.tar.gz).
- A binary download that can be installed on Mac OS X Server v10.6.3 through 10.6.4 is available from (http://www.opensource.apple.com/other/MySQL-53.binaries.tar.gz).
- A binary download that can be installed on Mac OS X Server v10.6.5 through 10.6.7 is available from (http://www.opensource.apple.com/other/MySQL-54.binaries.tar.gz).
- A binary download that can be installed on Mac OS X Server v10.6.8 is available from (http://www.opensource.apple.com/other/MySQL-55.binaries.tar.gz)
To install the binary distribution
Note: Substitute MySQL-53, MySQL-54 or MySQL-55 for MySQL-49 below if using a later version.
- Download the file.
- If the download doesn't automatically produce a folder on your desktop, double-click it to decompress a folder named "MySQL-49.binaries", which has a file named "MySQL-49.root.tar.gz" in it (as well as the read me file).
Note: Do not double-click/unzip the "MySQL-49.root.tar.gz" file that is within the folder.
- Open Terminal.
- Type cd followed by a space (but do not press Return).
- Drag the "MySQL-49.binaries" folder from your desktop to the Terminal window to populate the cd command's path.
- Press Return.
- Execute the following command:
sudo tar -xzvf MySQL-49.root.tar.gz -C /