Installing MySQL

  1. Go to the website
  2. From the download section of the site, download the package “Mac OS X (package format)” (ver 5.0 required)
  3. Open the downloaded .dmg file, and install the “mysql-5.0.XX-osx10.4-i686.pkg” package first.
  4. Then install “MySQLStartupItem.pkg” and finally “MySQL.prefPane”.
  5. Now you should see the new MySQL pane in the System Preferences window.


  6. Click on the MySQL pane and Start the server (for your ease you can check “Automatically Start MySQL on Startup”).
  7. Open Terminal and type

    sudo cp /etc/php.ini.default /etc/php.ini

  8. Now edit with pico the /etc/php.ini file. To do this, type the following line in Terminal:

    sudo pico /etc/php.ini


  9. search the line “mysql.default_socket =” and change it to:

    mysql.default_socket = /tmp/mysql.sock


  10. Press Ctrl+O and then press Return to confirm that you want to save settings.
  11. Press Ctrl+X to quit Pico.