Windows could not start the MySQL service on Local Computer.
Error 1058: The service cannot be started, either because it is disabled or because it has no enabled devices associated with it.
经过分析,可能是有关服务配置的某些问题导致此错误.下面是可能的解决方法:
打开"服务"窗口.可以通过以下方式打开:
使用Windows搜索功能找到"Services"(或"服务"),并打开.
使用"运行"对话框,输入"services.msc",然后按下"Enter"键.
选择"属性".
在"常规"选项卡中,确保"启动类型"为"Automatic"(自动).
如果它不是"Automatic"(自动),请选择它,然后单击"应用"按钮保存更改.
如果"启动类型"是"Automatic"(自动),跳到下一步.
选择"登录"选项卡.
请确认"该账户"为"本地系统账户".
确认该账户具有"服务登录"和"服务控制"权限.
单击"应用"按钮保存更改.
尝试重新启动MySQL服务.如果问题仍然存在,请尝试下一个方法.
打开MySQL错误日志文件.
检查最后几行以查找任何错误消息(例如,诊断消息或致命错误消息).
如果找到了任何错误消息,请尝试解决其原因.
下面是一个错误日志示例:
[ERROR] InnoDB: /* We intentionally print "error" here and exit, to make systemd's
* journalctl notice that MySQL exited with failure; cosmetic to most
* other usage scenarios */
[ERROR] InnoDB: Plugin initialization aborted with error Generic error
[ERROR] Plugin 'InnoDB' init function returned error.
[ERROR] Plugin 'InnoDB' registration as a STORAGE ENGINE failed.
[ERROR] Failed to initialize plugins.
上面的示例表示InnoDB插件初始化时出现错误.在这种情况下,可以尝试重新安装或升级InnoDB插件,或者通过禁用InnoDB插件来解决问题.
以上就是土嘎嘎小编大虾米为大家整理的相关主题介绍,如果您觉得小编更新的文章只要能对粉丝们有用,就是我们最大的鼓励和动力,不要忘记讲本站分享给您身边的朋友哦!!