Installing MySQL

This section shows you how to install and configure your MySQL 4 DBMS server. When you've completed this section, continue on to Section C.2.1.

  1. Download MySQL. Using a web browser, visit http://www.mysql.com/downloads/. Under the heading MySQL database server & standard clients, click on the link that's marked as the production release. On the release page, find the heading Mac OS X Package Installer downloads (not Mac OS X downloads!). Click on download next to the Standard option. Save the file to the desktop.

    At the time of writing, choosing which release to use is difficult. We recommend Server version 4.0, as you can use all of the book except some of the new features of MySQL 4.1 that are discussed in Chapter 15.

    If you choose Server version 4.1 or later, then the material in this book that relies on the standard MySQL library can't be used at the time of writing. The standard library is discussed in Chapter 6, and the standard library supports the PEAR DB package described in Chapter 7 and used in the example application in Chapter 16 to Chapter 20. It's likely that this will be remedied in the future, and that downloading 4.1 will become a good option. See Appendix H for more information.

  2. After the download completes, double-click on the downloaded file that's stored on the desktop; the file has a name such as mysql-standard-4.0.17.dmg.This mounts the image file: a dialog will show progress and then the Finder will appear showing two packages and a ReadMe.txt ...

Get Web Database Applications with PHP and MySQL, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.