mysql 5.7的文档上有这么一段描述,一直以来我觉得就应该这样,很多古老的脚本都可以去掉或者优化了。
mysql_install_db is deprecated as of MySQL 5.7.6 because its functionality has been integrated into mysqld, the MySQL server. Consequently, the -- bootstrap server option that mysql_install_db passes to mysqld is also deprecated. To initialize a MySQL installation as of MySQL 5.7.6, invoke mysqld with the --initialize or --initialize-insecure option. For more information, see Section 2.10.1.1, “Initializing the Data Directory Using mysqld”. mysql_install_db and the --bootstrap server option will be removed in a future MySQL release.