mysql数据库安装常见错误

1、Found option without preceding group in config file

D:\mysql-8.0.17\bin>mysqld --initialize --console

mysqld: [ERROR] Found option without preceding group in config file D:\mysql-8.0.17\my.ini at line 1.
mysqld: [ERROR] Fatal error in defaults handling. Program aborted!

原因:my.ini文件格式是utf-8

解决办法:my.ini文件保存为ANSI格式文件

2、Install/Remove of the Service Denied!

解决办法:打开cmd.exe程序的时候选择“用管理员身份打开”。

猜你喜欢

转载自www.cnblogs.com/Harold-Hua/p/11297015.html