To initialize a fresh data directory, you basically (after setting your config file) just have to run either
bin\mysqld --initialize
or
bin\mysqld --initialize-insecure
The latter will set an empty root password.
can't open the mysql.plugin table. please run mysql_upgrade to create it.
原文:https://www.cnblogs.com/merseyalma/p/10648082.html