本地计算机上的 MySQL 服务启动然后停止 [英] the MySQL service on local computer started and then stopped

查看:64
本文介绍了本地计算机上的 MySQL 服务启动然后停止的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

本地计算机上的 MySQL 服务启动然后停止.如果其他服务或程序未使用某些服务,它们会自动停止.

the MySQL service on local computer started and then stopped. Some services stop automatically if they are not in use by other services or programs.

谁能解决这个问题?谢谢.

Can anyone resolve this issue? Thanks.

推荐答案

如果使用版本 8 并且您编辑 my.ini,我发现记事本在 my.ini 文件的开头放置了 3 个十六进制字符.EF BB BF.在十六进制编辑器中删除文件开头的 3 个字符可解决此问题.

If using version 8 and you edit the my.ini I found that Notepad is putting 3 hex characters at the beginning of the my.ini file. EF BB BF. Deleting the 3 characters from the beginning of the file in a hex editor fixes the problem.

在第 8 版中,他们不小心将 Unicode 字符放入 ini 文件中.这导致记事本使用字节顺序标记字符保存文件.

In version 8 they are accidentally putting Unicode characters in the ini file. This is causing Notepad to save the file with Byte order mark characters.

文件中的以下行是罪魁祸首第 # 行范围从 1 到 2^32 − 1.唯一"意味着每个 ID 必须不同.有 3 个 Unicode 字符.这导致记事本将字节顺序标记附加到文本文件中.

The following line in the file is the culprit "The line # range from 1 to 2^32 − 1. "Unique" means that each ID must be different." has 3 Unicode characters. This is causing notepad to append the byte order mark to the text file.

这篇关于本地计算机上的 MySQL 服务启动然后停止的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆