mysql_install_dbmysql_install_db initializes the MySQL data directory and creates the system tables that it contains, if they do not exist.
mysqld, needs to access the data directory when it runs later, one should either runmysql_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.
mysql_install_db:
mysql_install_db [options]
mysql_install_db supports the following options:
--basedir=path
--force
mysql_install_db to run even if DNS does not work.
--datadir=path, --ldata=path
--rpm
--skip-name-resolve
--srcdir=path
mysql_install_db looks for support
files such as the error message file and the file for
populating the help tables.
--user=user_name
mysqld.
mysqld will be owned by this user.
root to use this option.
mysqld runs using the current login name.
--verbose
--windows
What is mysql_secure_installation?
© 2007 John Michael Pierobon