无法在Windows 10上重新启动mysql客户端

时间:2019-05-13 16:04:24

标签: mysql

我在重新启动MySQL客户端时遇到问题。我试图在services.msc和命令行下重新启动客户端,但是它没有重新启动。我得到的错误是:

# services.msc
The SQL Service on Local Computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

# command line
The SQL Service is starting.
The SQL Service could not be started.
The Service did not report an error.
More help is available by typing NET HELPMSG 3534

我已尝试根据一些建议更改属性以使用本地系统帐户,但这也不能解决问题。

在重新启动客户端之前,我对my.ini文件进行了一些更改。我只是想知道是否对配置文件进行任何更改都会导致此问题。另外,如何恢复默认my.ini文件的副本,以便可以将其替换为现有文件。

谢谢。

1 个答案:

答案 0 :(得分:1)

这是我刚安装的MySQL 8.0的全新安装中my.ini的内容:

Default MySQL80 my.ini

摘要:

# Other default tuning values
# MySQL Server Instance Configuration File
# ----------------------------------------------------------------------
# Generated by the MySQL Server Instance Configuration Wizard
#
#
# Installation Instructions
# ----------------------------------------------------------------------
#
# On Linux you can copy this file to /etc/my.cnf to set global options,
# mysql-data-dir/my.cnf to set server-specific options
# (@localstatedir@ for this installation) or to
# ~/.my.cnf to set user-specific options.