--user = 是什么

--user = 是什么

我从mysql文档中找到以下声明:

scripts/mysql_install_db --user=mysql

我想知道上面的 '--user=mysql' 是什么?该语句根本没有命令,所以我很困惑。

谢谢!

答案1

man mysql_install_db

--user=user_name

       The login user name 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.

相关内容