maomingchao

mysql提示Found option without preceding group in config file

今天修改了一下my.ini里面的参数,然后发先很奇怪,mysql启动不了,只好耐心找问题,根据网络上面的查询结果,一步步找答案。

启动的时候出现错误

 

 

然后只好查原因了

E:\mysql\MySQL Server 8.0\bin>mysqld --console
mysqld: [ERROR] Found option without preceding group in config file E:\mysql\MySQL Server 8.0\my.ini
at line 1.
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!

 

 

根据网上的很多朋友的提示,检查了my.ini配置文件的编码不正确,转成ANSI编码

 

 然后启动,果然一切正常

 

posted on 2022-02-11 21:48  maomingchao  阅读(1146)  评论(0编辑  收藏  举报

导航