我一直在使用脚本来安装突然停止工作的MySQL服务器......我这样安装:
MySQLInstallerConsole community install -silent server;5.7.14;x64:*:type=config;servertype=Server;openfirewall=true;generallog=true;serverid=3306;enable_tcpip=true;port=3306;rootpasswd=%1;installdir="C:\MySQL\MySQLServer-5.7":type=user;username=jlawyer;password=%1;role=DBManager
现在我突然得到了这个:
=================== 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 01.03.2017 22:48:34
=================== End Initialization ===================
Package MySQL Server 5.7.14 cannot be installed due to failing requirement.
Product installations done.
当我在GUI模式下运行安装程序时,它会自动下载并安装依赖项,但是如何让MySQLInstallerConsole执行此操作?
答案 0 :(得分:0)
您必须通过手动启动给定安装程序的安装来检查要求。我有同样的问题,这只是因为没有安装Visual C ++ 2013 64位。
仅供参考,Visual C ++ 2013可以使用vcredist_x64.exe /q /norestart
答案 1 :(得分:0)
在“用户配置”部分中,添加以下内容:-
auth_plugin = mysql_native_password(或您想要的任何身份验证类型
因此您将拥有以下内容:-
MySQLInstallerConsole community install -silent server;5.7.14;x64:*:type=config;servertype=Server;openfirewall=true;generallog=true;serverid=3306;enable_tcpip=true;port=3306;rootpasswd=%1;installdir="C:\MySQL\MySQLServer-5.7":type=user;username=jlawyer;password=%1;role=DBManager;auth_plugin=mysql_native_password