If you are running Mac OS X Server, a version of MySQL should already be installed. The following table shows the versions of MySQL that ship with Mac OS X Server versions.
Mac OS X Server Version | MySQL Version |
10.2-10.2.2 | 3.23.51 |
10.2.3-10.2.6 | 3.23.53 |
10.3 | 4.0.14 |
10.3.2 | 4.0.16 |
10.4.0 | 4.1.10a |
10.5.0 | 5.0.45 |
10.6.0 | 5.0.82 |
The installation layout of MySQL on Mac OS X Server is as shown in the table below:
Directory | Contents of Directory |
/usr/bin |
Client programs |
/var/mysql |
Log files, databases |
/usr/libexec |
The mysqld server |
/usr/share/man |
Unix manual pages |
/usr/share/mysql/mysql-test |
MySQL test suite |
/usr/share/mysql |
Contains the mysql_install_db script |
/var/mysql/mysql.sock | The location of the MySQL Unix socket |
The MySQL server bundled with Mac OS X Server does not include the MySQL client libraries and header files required if you want to access and use MySQL from a third-party driver, such as Perl DBI or PHP. For more information on obtaining and installing MySQL libraries, see Mac OS X Server version 10.5: MySQL libraries available for download. Alternatively, you can ignore the bundled MySQL server and install MySQL from the package or tarball installation.
For more information on managing the bundled MySQL instance in Mac OS X Server 10.5, see Mac OS X Server: Web Technologies Administration For Version 10.5 Leopard. For more information on managing the bundled MySQL instance in Mac OS X Server 10.6, see Mac OS X Server: Web Technologies Administration Version 10.6 Snow Leopard.