Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/24.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
mysql配置停止在";“正在启动服务器”;_Mysql_Windows_Installation - Fatal编程技术网

mysql配置停止在";“正在启动服务器”;

mysql配置停止在";“正在启动服务器”;,mysql,windows,installation,Mysql,Windows,Installation,我在Windows8机器上安装MySQL安装程序。在服务器配置过程中,它被卡在“启动服务器”上,不再移动。其日志为: 开始配置步骤:停止服务器[如有必要] 结束配置步骤:停止服务器[如有必要] 开始配置步骤:写入配置文件 已结束配置步骤:写入配置文件 开始配置步骤:更新防火墙 正在为端口3306上的MYSQL56添加防火墙规则。 已成功添加防火墙规则。 已结束配置步骤:更新防火墙 开始配置步骤:调整Windows服务[如有必要] 试图授予网络服务需要文件系统权限。 已授予权限。 添加新服务 新增

我在Windows8机器上安装MySQL安装程序。在服务器配置过程中,它被卡在“启动服务器”上,不再移动。其日志为:

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

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

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

开始配置步骤:调整Windows服务[如有必要]
试图授予网络服务需要文件系统权限。
已授予权限。
添加新服务
新增服务
已结束配置步骤:调整Windows服务[如有必要]

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


该链接也显示了相同的问题,但提供的解决方案对我不起作用。

我已经解决了这个问题。我的也被困在“启动服务器”上,事件查看器有这个问题-

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
因此,我发现问题出在尝试启动32位版本的MySQL时,64位机器上的安装程序附带的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
以下是我所做的:

  • 使用mysql-installer-web-community-5.6.23.0.msi安装
  • 出于我的目的,我选择了“自定义”安装MySQL服务器5.6.22-X64和MySQL连接器->连接器ODBC/5.3.4-64
  • 下一步->执行-(准备好配置)->下一步
  • 配置类型:开发机器,所有默认值(TCP/IP,端口:3306,开放防火墙)
  • 键入MySQL根密码
  • MySQL用户帐户->添加用户(用户名、密码,确定)->下一步
  • 将MySQL服务器配置为Windows服务(选中)
  • Windows服务名称:MySQL56(默认)
  • 在系统启动时启动MySQL服务
  • 这是至关重要的(错误就在这里):以。。。 标准系统帐户(已选中-但它将被忽略,这是错误)
  • 下一步->执行,安装挂起在启动服务器上,所以等待一段时间以超时(或者不超时,由您选择)。当对话框(可能被其他窗口覆盖)弹出消息“MySQL服务器的配置花费的时间比预期的要长…”时,单击此处的“确定”(以便等待更长时间)
  • 同时进入开始->控制面板->管理工具->服务->查找MySQL56,右键点击它->属性->选择登录选项卡,这里是BUG->虽然选择了本地系统帐户,但不知何故选择了“此帐户:网络服务(带有一些密码)->选择登录身份:本地系统帐户,允许服务与桌面交互->应用->返回常规选项卡
  • 在“常规”选项卡上,单击“开始”按钮以启动服务,它就在这里!服务启动了!单击OK关闭MySQL56属性对话框。关闭“服务”对话框。关闭管理工具。关闭控制面板
  • 到那个时候(当你们关闭那个些对话框时),当你们看到MySQl安装程序对话框时,所有的步骤都已经完成并被检查:启动服务器,应用安全性。。。正在创建用户帐户。。更新开始菜单链接
  • 用Finish->Next->Finish确认

  • 就是这样,happy MySQL ing:)

    即使是现在(v1.4.17.0),MySQL安装程序似乎也存在一个长期问题。不管怎样,每次我(重新)配置Windows7Pro或服务器(2008R2)上的实例时,它都会挂起

    最简单的解决方法是:

  • 当安装程序挂起时,打开Windows服务并找到mySQL服务实例
  • 双击打开/an实例并将登录设置为:本地系统帐户,并选中允许服务与桌面交互
  • 可选但最好设置恢复选项,以允许服务在出现问题后恢复
  • 确保启动类型设置为自动(或您的首选项)
  • 单击应用,然后单击开始(或单击确定,然后启动服务)
  • 返回MySQL安装程序,关闭任何关于等待进程完成的打开警告,进程应继续
  • 根据需要对每个MySQL服务器实例重复此操作
  • 注意:安装程序似乎没有启用您在首次配置MySQL服务器时选择的防火墙例外,因此您可能需要重新配置以打开防火墙


    旁注:总而言之,我不得不说,在使用MySQL生态系统仅仅两天之后,我对问题的严重性印象不大。我估计我必须设置两个服务器接口大约6次,然后一切才能像广告中所说的那样正常工作。仅在第一天,Workbench就在我身上崩溃了5次以上,我不得不在许多论坛中寻找类似问题的答案。请做好同样的准备。

    我今天发现安装程序有另一个问题

    我有同样的问题,安装程序挂在“启动服务器”。但是,在查看windows日志->应用程序下的windows事件查看器后,我发现
    # Specifies the on how table names are stored in the metadata.
    # If set to 0, will throw an error on case-insensitive operative systems
    # If set to 1, table names are stored in lowercase on disk and comparisons are not case sensitive.
    # If set to 2, table names are stored as given but compared in lowercase.
    # This option also applies to database names and table aliases.
    lower_case_table_names=0.0
    
    Net stop MySQL
    Sc delete MySQL
    
    C:\Users\[User-Name]\AppData\Roaming\MySQL