java - 无法使用服务安装mysql

标签 java mysql installation

在使用服务安装/配置 mysql 时,出现以下错误:

enter image description here

请尽快帮我解决这个问题!

最佳答案

可能原因:日志文件可能已满。

解决方案:

  1. 右键单击“我的电脑”
  2. 选择“管理”
  3. 右键单击应用程序日志
  4. 选择属性
  5. 将最大日志大小更改为更大的值
  6. 选中“需要时覆盖事件”

此外,另一种调试方法是查看日志文件。有关详细信息,请参阅 this

Take a look at your error log by looking in:

“C:\Documents and Settings\All Users.WINDOWS\Application Data\MySQL\”

Then click on the “MySQL Server X.X\” folder and then “data\”

Find the file [MY-DOMAIN-NAME].err and open it using notepad

Another possible cause of the 1067 error might be faulty my.ini settings.

So the general tip from me would be: Try to think of any reconfigurations you’ve done recently. That might be what’s causing this. —ChromaWoods

We were getting a 1067 error because (we think) we’d been unable to successfully complete a reinstall after mixing up the original root password [on the mysql server].

我们最终的解决方案是完全卸载MySQL并重新安装。棘手的部分是卸载需要三个步骤:

  1. 通过控制面板中的“添加/删除程序”进行卸载。

  2. 删除基本目录 - 可能是 C:/Program Files/MySQL

  3. 删除数据目录 - 可能是 C:/Documents and Settings/All Users/Application Data/MySQL

查找数据目录可能有点棘手,因为应用程序数据文件夹默认是隐藏的。如果您更改了“文件夹选项”以便可以查看“应用程序数据”文件夹,但仍然看不到它,请在“开始”菜单的“运行”中键入路径(第 3 步中的路径)以打开该文件夹。

卸载 MySQL 并删除这两个文件夹后,您应该准备好重新开始!

关于java - 无法使用服务安装mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34273288/

相关文章:

java - 使用 Intents 和 OnClickListener 时的“预期类或包”

php - 删除后的 jQuery/AJAX 在多列 div 中留下空白

mysql - 独占锁(行级)——MySql需要一个例子

mysql - 从一个表中获取所有行的列表,满足两个不同表中的多个条件

WiX 服务安装程序和自定义安装事件

java - 为什么 Spring 框架不允许 Autowiring 原始类型?

java - 严重 : Manager [localhost#/]: Unable to receive message through TCP channel

java - 取消注册订阅者时的 Eventbus (greenrobot) 事件

windows - Inno Setup - 在 Windows 10 中的公共(public)用户文档中创建文件夹

windows - 在 vista 上运行 pip 从 powershell 内部安装 python 包