ADC Home > Reference Library > Reference > Mac OS X > Mac OS X Man Pages

 

This document is a Mac OS X manual page. Manual pages are a command-line technology for providing documentation. You can view these manual pages locally using the man(1) command. These manual pages come from many different sources, and thus, have a variety of writing styles.

This manual page is associated with Mac OS X Server. It is not available on standard Mac OS X (client) installations.

For more information about the manual page format, see the manual page for manpages(5).



MYSQL_INSTALL_DB.ds an-section "1()         MySQL Database System        MYSQL_INSTALL_DB.ds an-section "1()



NAME
       mysql_install_db - MySQL data directory initialization script

SYNOPSIS
       mysql_install_db [options]

DESCRIPTION
       mysql_install_db initializes the MySQL data directory and creates the system tables that it contains,
       if they do not exist. Because the MySQL server, mysqld, needs to access the data directory when it
       runs later, you should either run mysql_install_db from the same account that will be used for
       running mysqld or run it as root and use the --user option to indicate the username that mysqld will
       run as.

       To invoke mysql_install_db, use the following syntax:

          shell> mysql_install_db [options]

       mysql_install_db needs to invoke mysqld with the --bootstrap and --skip-grant-tables options (see
       Section 4.14.2, "Typical configure Options"). If MySQL was configured with the
       --disable-grant-options option, --bootstrap and --skip-grant-tables will be disabled. To handle this,
       set the MYSQLD_BOOTSTRAP environment variable to the full pathname of a server that has all options
       enabled.  mysql_install_db will use that server.

       mysql_install_db supports the following options:

         --basedir=path

          The path to the MySQL installation directory.

         --force

          Causes mysql_install_db to run even if DNS does not work. In that case, grant table entries that
          normally use hostnames will use IP addresses.

         --datadir=path, --ldata=path

          The path to the MySQL data directory.

         --rpm

          For internal use. This option is used by RPM files during the MySQL installation process.

         --skip-name-resolve

          Use IP addresses rather than hostnames when creating grant table entries. This option can be
          useful if your DNS does not work.

         --srcdir=path

          For internal use. The directory under which mysql_install_db looks for support files such as the
          error message file and the file for populating the help tables. This option was added in MySQL
          5.0.32.

         --user=user_name

          The login username to use for running mysqld. Files and directories created by mysqld will be
          owned by this user. You must be root to use this option. By default, mysqld runs using your
          current login name and files and directories that it creates will be owned by you.

         --verbose

          Verbose mode. Print more information about what the program does.

         --windows

          For internal use. This option is used for creating Windows distributions.

COPYRIGHT
       Copyright 1997-2007 MySQL AB

       This documentation is NOT distributed under a GPL license. Use of this documentation is subject to
       the following terms: You may create a printed copy of this documentation solely for your own personal
       use. Conversion to other formats is allowed as long as the actual content is not altered or edited in
       any way. You shall not publish or distribute this documentation in any form or on any media, except
       if you distribute the documentation in a manner similar to how MySQL disseminates it (that is,
       electronically for download on a Web site with the software) or on a CD-ROM or similar medium,
       provided however that the documentation is disseminated together with the software on the same
       medium. Any other use, such as any dissemination of printed copies or use of this documentation, in
       whole or in part, in another publication, requires the prior written consent from an authorized
       representative of MySQL AB. MySQL AB reserves any and all rights to this documentation not expressly
       granted above.

       Please email <docs@mysql.com> for more information.

SEE ALSO
       For more information, please refer to the MySQL Reference Manual, which may already be installed
       locally and which is also available online at http://dev.mysql.com/doc/

AUTHOR
       MySQL AB (http://www.mysql.com/)  This software comes with no warranty.



MySQL 5.0                                        07/04/2007              MYSQL_INSTALL_DB.ds an-section "1()

Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.