配置MySQL报错
报错信息如下:
mysqld: [ERROR] Found option without preceding group in config file D:\LenovoSoftstore\Install\Mysql\mysql-8.0.27\my.ini at line 1.
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!
解决方法一:
编码格式错误导致,看看文件格式是否为UTF-8
打开my.ini配置文件-另存为-选择ANIS文件格式 即可
解决方法二:
缺少[mysqld]
在my.ini配置文件的第一行加入[mysqld] 即可