命令在此:mysqld --initialize-insecure --user=mysql
文档表明,使用-initialize生成随机密码,使用-initialize-insecure生成空密码。默认帐号root,后面的-user=mysql不更改
官方文档:http://dev.mysql.com/doc/refman/5.7/en/data-directory-initialization-mysqld.html
源文来自 https://www.cnblogs.com/songxingzhu/p/5713553.html