mysql_install_db

来源:互联网 发布:2017广州美博会数据 编辑:程序博客网 时间:2024/05/16 12:30

mysql_install_db安装授权表

 

 

  --basedir=path       The path to the MySQL installation directory.

  --datadir=path       The path to the MySQL data 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.

  --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 popoulating the

                       help tables.

  --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.

  --windows            For internal use.  This option is used for creating

                       Windows distributions.



--user  username,主要是设置用来运行mysqld,当mysqld建立文件和目录时使用username,username为文件和目录的所有者