本文介绍: 安装MYSQL时,在cmd中“初始化”数据库时,输入命令:mysqld —initialize —consolecmd报错:D:mysql-8.0.19-winx64bin>mysql —initialize —consolemysql: [ERROR] Found option without preceding group in config file D:mysql-8.0.19-winx64my.ini at line 1.mysql: [ERROR] Fatal erro
1、问题描述
安装MYSQL时,在cmd中“初始化”数据库时,输入命令:
mysqld —initialize —console
cmd报错:
D:mysql-8.0.19-winx64bin>mysql —initialize —console
mysql: [ERROR] Found option without preceding group in config file D:mysql-8.0.19-winx64my.ini at line 1.
mysql: [ERROR] Fatal error in defaults handling. Program aborted!
2、解决方法
参考博客:mysql——启动服务问题Found option without preceding group in config file
错误位置:另存为配置my.ini文件时,将“编码”改为:UTF-8。
声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。