【发布时间】:2019-02-20 14:36:23
【问题描述】:
我正在尝试使用 MYSQL 社区版 v8.0.12 在静默模式下安装 MySQL 服务器(在 Windows 上)。
我先跑
msiexec /i "mysql-installer-community-8.0.12.0.msi" /qn
然后
MySQLInstallerConsole community install -silent server;8.0.12;x64:*:type=config;
openfirewall=true;generallog=true;binlog=true;serverid=3306;enable_tcpip=true;port=3306;
rootpasswd=Unkn0wN;installdir="C:\MySQL\MySQL Server 8.0":type=user;username=foo;
password=bar;role=DBManager
MySQLInstallerConsole.exe 执行日志:
=================== Start Initialization ===================
MySQL Installer is running in Community mode
Attempting to update manifest.
Initializing product requirements
Loading product catalog
Checking for product catalog snippets
Checking for product packages in the bundle
Categorizing product catalog
Finding all installed packages.
Your product catalog was last updated at 9/16/2018 5:20:01 PM
=================== End Initialization ===================
MySQL Server 8.0.12 - An authentication plugin must be specified for new users.
错误是:“MySQL Server 8.0.12 - 必须为新用户指定身份验证插件。”
Oracle 似乎没有在其网站上更新 MySQLInstallerConsole 参考参数,有谁知道我如何为 MySQLInstallerConsole 指定一个身份验证插件?
现在我只是通过不创建用户 foo 来解决它。
MySQLInstallerConsole community install -silent server;8.0.12;x64:*:type=config;
openfirewall=true;generallog=true;binlog=true;serverid=3306;enable_tcpip=true;port=3306;
rootpasswd=Unkn0wN;installdir="C:\MySQL\MySQL Server 8.0";datadir="C:\MySQL\data"
【问题讨论】: