mysql_install_dbThe mysql_install_db script creates the server's data directory, initializes the mysql database that contains the grant tables, and creates an empty test database. mysql_install_db populates the grant tables with initial accounts for the root and anonymous users. See Chapter 11 for details on these accounts and how to secure your installation by establishing passwords. mysql_install_db is a shell script and is unavailable on Windows. However, it is unnecessary on Windows, because distributions include the mysql and test databases preinitialized. Usage mysql_install_db [options] Options Specific to mysql_install_dbThe version numbers mentioned in this section indicate when you can first use the options on the command line, but you can set the values for many of them in earlier versions by placing appropriate entries in the [mysqld] group of the global option file. As of MySQL 3.23.39, the script also reads the [mysql_install_db] option group, which is more useful for options, such as --ldata and --force, that are understood only by mysql_install_db and not mysqld.
|