解决在windows中mysql安装服务后启动服务失败的问题
1、异常信息
2、官网提示
As of MySQL 5.7.6, the Zip Archive no longer includes a data directory. To initialize a MySQL installation by creating the data directory and populating the tables in the mysql system database, initialize MySQL using either --initialize or --initialize-insecure.
大致意思是说在MySQL5.7.6之后,解压版不再包含一个data目录了,初始化安装MySQL需要使用:–initialize或者–initialize-insecure指令。