最佳答案
可能原因:日志文件可能已满。
解决方案:
- 右键单击“我的电脑”
- 选择“管理”
- 右键单击应用程序日志
- 选择属性
- 将最大日志大小更改为更大的值
- 选中“需要时覆盖事件”
此外,另一种调试方法是查看日志文件。有关详细信息,请参阅 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并重新安装。棘手的部分是卸载需要三个步骤:
通过控制面板中的“添加/删除程序”进行卸载。
删除基本目录 - 可能是 C:/Program Files/MySQL
删除数据目录 - 可能是 C:/Documents and Settings/All Users/Application Data/MySQL
查找数据目录可能有点棘手,因为应用程序数据文件夹默认是隐藏的。如果您更改了“文件夹选项”以便可以查看“应用程序数据”文件夹,但仍然看不到它,请在“开始”菜单的“运行”中键入路径(第 3 步中的路径)以打开该文件夹。
卸载 MySQL 并删除这两个文件夹后,您应该准备好重新开始!
关于java - 无法使用服务安装mysql,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34273288/