To initialize a fresh data directory, you basically (after setting your config file) just have to run eithermysql
bin\mysqld --initialize
orsql
bin\mysqld --initialize-insecure
The latter will set an empty root password.spa