mysql配置停在"启动服务器"

Par*_*ver 33 mysql windows installation

我在我的Windows 8机器上安装了MySQL安装程序.在服务器配置过程中,它停留在"启动服务器"并且不再移动.相同的日志是:

开始配置步骤:停止服务器[如有必要]
结束配置步骤:停止服务器[如有必要]

开始配置步骤:编写配置文件
结束配置步骤:编写配置文件

开始配置步骤:更新防火墙
在端口3306上为MYSQL56
添加防火墙规则.成功添加了防火墙规则.
结束配置步骤:更新防火墙

开始配置步骤:调整Windows服务[如有必要]
尝试授予网络服务需要文件系统权限.
授予权限.
添加新服务
新的服务添加
端的配置步骤:调整Windows服务[必要时]

我已经尝试过以下方法: -
*卸载所有与MySQL有关的程序.
*从C:\ Program Files中删除了MySQL文件夹.
*清理我的注册表.
然后重新安装程序,但都是徒劳的.

MySQL Installer Stuck on"Starting Service"的链接也显示了同样的问题,但提供的解决方案对我不起作用.

Nen*_*vic 91

这是我做的:

  1. 使用mysql-installer-web-community-5.6.23.0.msi安装它
  2. 为了我的目的,我选择了"自定义"安装与MySQL服务器5.6.22 - X64和MySQL连接器 - >连接器ODBC/5.3.4 - 64
  3. 下一步 - >执行 - (准备配置) - >下一步
  4. 配置类型:开发机器,所有默认值(TCP/IP,端口:3306,开放防火墙)
  5. 输入MySQL Root Password
  6. MySQL用户帐户 - >添加用户(用户名,密码,确定) - >下一步
  7. 将MySQL服务器配置为Windows服务(已检查)
  8. Windows服务名称:MySQL56(默认)
  9. 在系统启动时启动MySQL服务器
  10. 这是关键的(BUG在这里):运行服务为...标准系统帐户(已检查 - 但它将被忽略,这是BUG)
  11. 下一步 - >执行,安装在启动服务器上挂起,等待一段时间超时(或不要,你的选择).当Dialog(可能被其他窗口覆盖)弹出消息"MySQL服务器的配置花费的时间比预期的要长......",点击OK(等待更长时间)
  12. 同时转到开始 - >控制面板 - >管理工具 - >服务 - >找到MySQL56,右键单击它 - >属性 - >选择登录选项卡和这里是BUG - >虽然选择了本地系统帐户,但不知何故"此帐户:选择了网络服务(带有一些密码) - >选择登录为:本地系统帐户,允许服务与桌面交互 - >应用 - >返回常规选项卡
  13. 在常规选项卡上单击"开始"按钮开始服务,这里是!服务开始了!单击OK关闭MySQL56 Properties对话框.关闭服务对话框.关闭管理工具.关闭控制面板.
  14. 当你查看MySQl安装程序对话框时,当你关闭这些对话框时,所有步骤都已完成并检查:启动服务器,应用安全性...创建用户帐户..更新开始菜单链接
  15. 单击完成确认 - >下一步 - >完成

就是这样,快乐的MySQL-ing :)

  • 不幸的是,它不起作用.当我启动服务时,它给了我另一个错误:`本地计算机上的MySQL服务启动然后停止等......".有什么帮助?! (4认同)
  • 在Windows 10中为我工作.MySql 5.7安装程序也存在同样的问题 (3认同)
  • 非常感谢-我使用5.7进行了此操作,必须先停止服务-对我来说,这是第12.5步 (2认同)
  • 它适用于Windows 7 x64版本5.7.10。谢谢 (2认同)
  • 在Windows 10上使用5.7.11,非常感谢! (2认同)
  • 哇 2019 年,安装到 W2K12 的 v8 中仍然存在此错误 (2认同)
  • 这个“bug”在 8.0.17 中仍然存在。也许 Oracle 将您的说明(或此页面的链接)添加到安装向导中会更容易 - 那么它就不再是一个错误,并且以某种方式改善了用户体验 (2认同)

Cha*_*ill 5

我今天发现了安装程序的另一个问题。

我在“启动服务器”上挂有安装程序的相同问题。但是,在查看Windows日志->应用程序下的Windows事件查看器后,我发现了错误

“参数太多(第一个是'Something'。更多信息,请参见位于http://www.mysql.com的帮助和支持中心。”)。

问题是安装程序无法处理Windows服务名称(我使用的名称是Something MySQL)中的空格。只需将名称更改为没有空格的名称即可。


Muk*_*kus 0

我已经弄清楚了这一点。我的也卡在“启动服务器”处,事件查看器有这个 -

The description for Event ID 100 from source MySQL cannot be found. Either the component that raises this event is not installed on your local computer or the installation is corrupted. You can install or repair the component on the local computer.    
If the event originated on another computer, the display information had to be saved with the event.    
The following information was included with the event:     
innobase_buffer_pool_size can't be over 4GB on 32-bit systems
Run Code Online (Sandbox Code Playgroud)

所以我发现问题是试图在 64 位机器上启动与安装程序捆绑在一起的 32 位版本的 MySQL,这可能就是问题所在。不过,MySQL 表示它将安装 64 位数据库。

我所做的是下载 64 位压缩版本并将其解压缩到临时位置。我重新运行安装程序并让它安装 mysql。我在没有停止安装程序的情况下将其中的内容替换为临时位置的其他版本。然后我继续安装程序的配置步骤。它成功启动了该服务。

这是日志的完整跟踪。

Beginning configuration step: Stopping Server [if necessary]
Ended configuration step: Stopping Server [if necessary]

Beginning configuration step: Writing configuration file
Ended configuration step: Writing configuration file

Beginning configuration step: Updating firewall
Adding firewall rule for MySQL56 on port 3306.
Successfully added firewall rule.
Ended configuration step: Updating firewall

Beginning configuration step: Adjusting Windows service [if necessary]
Attempting to grant Network Service require filesystem permissions.
Granted permissions.
Adding new service
New service added
Ended configuration step: Adjusting Windows service [if necessary]

Beginning configuration step: Starting Server
Starting MySQL as a service
Ended configuration step: Starting Server

Beginning configuration step: Applying security settings
Attempting to update security settings.
Updated security settings.
Ended configuration step: Applying security settings

Beginning configuration step: Creating user accounts
Attempting to Add New MySQL Users
Added New Users.
Ended configuration step: Creating user accounts

Beginning configuration step: Updating Start Menu Link
Attempting to verify command-line client shortcut.
Verified command-line client shortcut.
Verified command-line client shortcut.
Ended configuration step: Updating Start Menu Link
Run Code Online (Sandbox Code Playgroud)

mysql站点