无法弄清楚为什么MySQL Server安装失败

时间:2019-11-25 17:37:46

标签: mysql windows installation

我正在尝试在 windows 笔记本电脑上安装 MySQL 5.7.2 。该笔记本电脑以前曾在公司中使用过,而我的老板则对其进行了“出厂重置”,以换取任何价值。我安装了MySQL社区安装程序,其他所有东西都安装正确,但实际的服务器未安装。我已经安装了C ++可再发行组件。

进度数上升到88%,然后回落到50%,然后告诉我安装失败,并且得到以下输出。我在输出中没有看到任何指示错误的信息。希望以前有人遇到过此问题。我将“文件”部分的大部分切掉以适应字符数限制。

1: 1: MySQL Server 5.7 2: {FB709D10-253F-4362-A1DE-39A896CE5549} 
1: Action 9:31:58: FindRelatedProducts. Searching for related applications
1: Action 9:31:58: AppSearch. Searching for installed applications
1: Action 9:31:58: LaunchConditions. Evaluating launch conditions
1: Action 9:31:58: ValidateProductID. 
1: Action 9:31:58: CostInitialize. Computing space requirements
1: Action 9:31:58: FileCost. Computing space requirements
1: Action 9:31:58: CostFinalize. Computing space requirements
1: Action 9:31:58: MigrateFeatureStates. Migrating feature states from related applications
1: Action 9:31:58: InstallValidate. Validating install
1: Action 9:31:58: SaveTargetDir. 
1: Action 9:31:58: InstallInitialize. 
1: Action 9:31:58: RemoveExistingProducts. Removing applications
1: Action 9:31:58: ProcessComponents. Updating component registration
1: Action 9:31:59: GenerateScript. Generating script operations for action:
1: Updating component registration
1: Action 9:32:00: UnpublishFeatures. Unpublishing Product Features
1: Action 9:32:00: SchedSecureObjectsRollback. 
1: Action 9:32:00: RemoveRegistryValues. Removing system registry values
1: Action 9:32:00: RemoveShortcuts. Removing shortcuts
1: Action 9:32:00: RemoveFiles. Removing files
1: Action 9:32:00: RemoveFolders. Removing folders
1: Action 9:32:00: CreateFolders. Creating folders
1: Folder: Creating folders
1: Action 9:32:00: InstallFiles. Copying new files
1: File: Copying new files,  Directory: ,  Size: 
1: Action 9:32:01: CreateShortcuts. Creating shortcuts
1: Shortcut: Creating shortcuts
1: Action 9:32:01: WriteRegistryValues. Writing system registry values
1: Key: Writing system registry values, Name: , Value: 
1: Action 9:32:01: InstallServices. Installing new services
1: Action 9:32:01: SchedSecureObjects. 
1: Action 9:32:01: ExecSecureObjects. 
1: 
1: Action 9:32:01: RegisterUser. Registering user
1: Action 9:32:01: RegisterProduct. Registering product
1: Registering product
1: Action 9:32:01: PublishFeatures. Publishing Product Features
1: Feature: Publishing Product Features
1: Action 9:32:01: PublishProduct. Publishing product information
1: Action 9:32:01: InstallFinalize. 
1: Action 9:32:01: ProcessComponents. Updating component registration
1: Action 9:32:01: CreateFolders. Creating folders
1: Folder: C:\ProgramData\MySQL\MySQL Server 5.7\
1: Folder: C:\ProgramData\MySQL\MySQL Server 5.7\data\
1: Folder: C:\ProgramData\MySQL\MySQL Server 5.7\data\mysql\
1: Folder: C:\ProgramData\MySQL\MySQL Server 5.7\data\performance_schema\
1: Folder: C:\ProgramData\MySQL\MySQL Server 5.7\data\test\
1: Action 9:32:01: InstallFiles. Copying new files
1: File: innochecksum.exe,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\bin\,  Size: 3988920
1: File: libmecab.dll,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\bin\,  Size: 1839616
1: File: lz4_decompress.exe,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\bin\,  Size: 81336
1: File: my_print_defaults.exe,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\bin\,  Size: 3553208
......
......
......
1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\share\polish\,  Size: 79429
1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\share\portuguese\,  Size: 81673
1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\share\romanian\,  Size: 80423
1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\share\russian\,  Size: 94048
1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\share\serbian\,  Size: 81092
1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\share\slovak\,  Size: 79237
1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\share\spanish\,  Size: 80365
1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\share\swedish\,  Size: 79564
1: File: errmsg.sys,  Directory: C:\Program Files\MySQL\MySQL Server 5.7\share\ukrainian\,  Size: 88623
1: Action 9:32:06: CreateShortcuts. Creating shortcuts
1: Shortcut: icon.ico
1: Shortcut: Icon.MysqlCmdShell
1: Shortcut: rhj5cnaj|MySQL 5.7 Command Line Client
1: Shortcut: b7npydg0|MySQL 5.7 Command Line Client - Unicode
1: Action 9:32:06: WriteRegistryValues. Writing system registry values
1: Key: \SOFTWARE\MySQL AB\MySQL Server 5.7, Name: Location, Value: C:\Program Files\MySQL\MySQL Server 5.7\
1: Key: \SOFTWARE\MySQL AB\MySQL Server 5.7, Name: Version, Value: 5.7.27
1: Key: \SOFTWARE\MySQL AB\MySQL Server 5.7, Name: DataLocation, Value: C:\ProgramData\MySQL\MySQL Server 5.7\
1: Key: \SOFTWARE\MySQL AB\MySQL Server 5.7, Name: , Value: 
1: Key: \Console\MySQL 5.7 Command Line Client - Unicode, Name: FaceName, Value: Lucida Console
1: Key: \Console\MySQL 5.7 Command Line Client - Unicode, Name: FontWeight, Value: #400
1: Key: \Console\MySQL 5.7 Command Line Client - Unicode, Name: , Value: 
1: Key: \Software\MySQL AB\MySQL Server 5.7, Name: installed, Value: #1
1: Action 9:32:06: ExecSecureObjects. 
1: Action 9:32:06: Rollback. Rolling back action:
1: ExecSecureObjects
1: Writing system registry values
1: Creating shortcuts
1: Copying new files
1: Creating folders
1: Updating component registration
1: 1: MySQL Server 5.7 2: {FB709D10-253F-4362-A1DE-39A896CE5549} 3: 3 
1: The action 'Install' for product 'MySQL Server 5.7.27' failed.```

2 个答案:

答案 0 :(得分:1)

这是已经here回答的问题。我希望这能解决您的问题。

答案 1 :(得分:0)

  1. 通过Web安装程序下载并安装服务器,并使其失败。
  2. 导航至C:\ ProgramData \ MySQL \ MySQL Windows Installer \ Product Cache \ mysql-5.7.21-winx64.exe安装程序。如果系统中未显示程序数据,请执行Unhide文件夹。如果exe不可用,则可以在要安装mysql服务器时从安装程序日志中下载位置记录,它显示在底部。双击此exe并安装。选择自定义安装
  3. 从安装列表中排除“服务器数据文件”。完成后,重新运行您的mysql社区安装程序。
  4. 现在您将看到已安装Mysql服务器。在“快速操作”下,单击“重新配置”。
  5. 然后设置您的mysql并且应该完成