Oracle 5.0 Reference Manual page 116

Table of Contents

Advertisement

Mac OS X Server Version
10.2.3-10.2.6
10.3
10.3.2
10.4.0
This manual section covers the installation of the official MySQL Mac OS X PKG only. Make sure to
read Apple's help information about installing MySQL: Run the "Help View" application, select "Mac OS
X Server" help, do a search for "MySQL," and read the item entitled "Installing MySQL."
For preinstalled versions of MySQL on Mac OS X Server, note especially that you should start
with
instead of
safe_mysqld
If you previously used Marc Liyanage's MySQL packages for Mac OS X from http://www.entropy.ch,
you can simply follow the update instructions for packages using the binary installation layout as given
on his pages.
If you are upgrading from Marc's 3.23.x versions or from the Mac OS X Server version of MySQL to
the official MySQL PKG, you also need to convert the existing MySQL privilege tables to the current
format, because some new security privileges have been added. See
— Check Tables for MySQL
If you want MySQL to start automatically during system startup, you also need to install the MySQL
Startup Item. It is part of the Mac OS X installation disk images as a separate installation package.
Simply double-click the MySQLStartupItem.pkg icon and follow the instructions to install it. The Startup
Item need be installed only once. There is no need to install it each time you upgrade the MySQL
package later.
The Startup Item for MySQL is installed into /Library/StartupItems/MySQLCOM. (Before MySQL
4.1.2, the location was /Library/StartupItems/MySQL, but that collided with the MySQL Startup
Item installed by Mac OS X Server.) Startup Item installation adds a variable
system configuration file /etc/hostconfig. If you want to disable the automatic startup of MySQL,
simply change this variable to MYSQLCOM=-NO-.
On Mac OS X Server, the default MySQL installation uses the variable
file. The MySQL Startup Item installer disables this variable by setting it to MYSQL=-NO-.
hostconfig
This avoids boot time conflicts with the
it does not shut down a running MySQL server. You should do that yourself.
After the installation, you can start up MySQL by running the following commands in a terminal window.
You must have administrator privileges to perform this task.
If you have installed the Startup Item, use this command:
shell>
sudo /Library/StartupItems/MySQLCOM/MySQLCOM start
(Enter your password, if necessary)
(Press Control-D or enter "exit" to exit the shell)
If you do not use the Startup Item, enter the following command sequence:
shell>
cd /usr/local/mysql
shell>
sudo ./bin/mysqld_safe
(Enter your password, if necessary)
(Press Control-Z)
shell>
bg
(Press Control-D or enter "exit" to exit the shell)
You should be able to connect to the MySQL server, for example, by running
bin/mysql.
Installing MySQL on Mac OS X
if MySQL is older than version 4.0.
mysqld_safe
Upgrade".
variable used by the MySQL Startup Item. However,
MYSQLCOM
96
MySQL Version
3.23.53
4.0.14
4.0.16
4.1.10a
Section 4.4.9,
MYSQL
mysqld
"mysql_upgrade
to the
MYSQLCOM=-YES-
in the
/etc/
/usr/local/mysql/

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mysql 5.0

Table of Contents