Mysql5.7免安装版配置方法:
运行 cmd
切换到 mysql 目录中 bin/mysqld.exe 所在的目录
在命令行中输入 mysqld install mysql5.7
安装成功后,启动mysql
在命令行中输入 net start mysql5.7
这个时候会出现服务无法启动的问题,原因是因为oracle把data目录给删除了
我们可以用 mysqld --initialize --console 先初始化 data目录,再启动,就可以了
加上--console 参数可以看到初始化之后的默认随机密码。