mysql80服务无法正常启动的解决方法

搜了下国内的一些博客和论坛,基本上都无法解决我的问题。

我的mysql版本是8,因为用记事本修改了my.ini文件,然后mysql80服务打不开。

在谷歌上搜到一个解决方案,神解决:用记事本将my.ini文件编码改成ANSI另存一下即可。

附上原文链接地址和评论:

https://stackoverflow.com/questions/35670755/the-mysql-service-on-local-computer-started-and-then-stopped

review1: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.

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.

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.

 

review2:You can also choose the ANSI encoding in the "save as..." dialog and ignore the following warning. Thanks for the tip! 

  • 1
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值