解决办法:将my.ini中的路径反斜杠\换成斜杠/,即basedir=F:\soft\mysql-5.7.30-winx64换成basedir=F:/soft/mysql-5.7.30-winx64
mysql5.7初始化命令 mysqld --initialize报错
原文:https://www.cnblogs.com/silver-aircraft/p/13068644.html