(Windows 7) 我刚刚使用MSI安装程序安装了MySQL Server 5.7,因此据我所知,它作为Windows服务安装。
我尝试使用命令启动服务器时遇到了问题:
C:\>mysqld
在命令行中发出此命令后,没有任何反应。光标只是闪烁着,我卡住了。
如果我尝试使用Windows Services启动服务器,则会收到以下消息:
“本地计算机上的MySQL104服务已启动,然后停止。如果其他服务或程序不使用它们,则某些服务将自动停止。”
(MySQL104是我在安装期间指定的服务器名称)
另外,如果我尝试使用以下命令作为服务通过命令行运行此服务:
C:\>net start MySQL104
我得到了答案:
C:\>net start MySQL104
The MySQL104 service is starting.
The MySQL104 service could not be started.
The service did not report an error.
More help is available by typing NET HELPMSG 3534.
C:\>net helpmsg 3534
The service did not report an error.
目前我唯一重启服务器的方法是重启整个系统,因为它会在系统启动时自动启动。
我正在以管理员身份运行命令行,但已经没有更好的主意了。