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.
Table 2.9. MySQL Versions Preinstalled with Mac OS X Server
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 following table shows the installation layout of MySQL on Mac OS X Server.
Table 2.10. MySQL Directory Layout for Preinstalled MySQL Installations on Mac OS X Server
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 | Miscellaneous support files, including error messages, character set files, sample configuration files, SQL for database installation |
/var/mysql/mysql.sock | Location of the MySQL Unix socket |
Additional Resources
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.
The MySQL server bundled with Mac OS X Server does not include the MySQL client libraries and header files required 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.