G:\java_tools\mysql-5.7.21-winx64>mysqld install
Service successfully installed.
G:\java_tools\mysql-5.7.21-winx64>cd G:\java_tools\mysql-5.7.21-winx64
G:\java_tools\mysql-5.7.21-winx64>cd bin
G:\java_tools\mysql-5.7.21-winx64\bin>mysqld --initialize --user=root --console
2018-02-21T15:15:08.491093Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is
deprecated. Please use --explicit_defaults_for_timestamp server option (see doc
umentation for more details).
2018-02-21T15:15:08.491093Z 0 [Warning] 'NO_ZERO_DATE', 'NO_ZERO_IN_DATE' and 'E
RROR_FOR_DIVISION_BY_ZERO' sql modes should be used with strict mode. They will
be merged with strict mode in a future release.
2018-02-21T15:15:08.491093Z 0 [Warning] 'NO_AUTO_CREATE_USER' sql mode was not s
et.
2018-02-21T15:15:10.723220Z 0 [Warning] InnoDB: New log files created, LSN=45790
2018-02-21T15:15:11.626272Z 0 [Warning] InnoDB: Creating foreign key constraint
system tables.
2018-02-21T15:15:11.952291Z 0 [Warning] No existing UUID has been found, so we a
ssume that this is the first time that this server has been started. Generating
a new UUID: 02de899d-171a-11e8-9082-28d244ccf557.
2018-02-21T15:15:12.177304Z 0 [Warning] Gtid table is not ready to be used. Tabl
e 'mysql.gtid_executed' cannot be opened.
2018-02-21T15:15:12.187304Z 1 [Note] A temporary password is generated for root@
localhost: iS6wF7Si!+lO
G:\java_tools\mysql-5.7.21-winx64\bin>net start mysql
MySQL 服务正在启动 .
MySQL 服务已经启动成功。
G:\java_tools\mysql-5.7.21-winx64\bin>mysql -u root -p
mysql: [ERROR] unknown variable 'innodb_force_recovery=0'
G:\java_tools\mysql-5.7.21-winx64\bin>
-------------------------
版权声明:本文内容由阿里云实名注册用户自发贡献,版权归原作者所有,阿里云开发者社区不拥有其著作权,亦不承担相应法律责任。具体规则请查看《阿里云开发者社区用户服务协议》和《阿里云开发者社区知识产权保护指引》。如果您发现本社区中有涉嫌抄袭的内容,填写侵权投诉表单进行举报,一经查实,本社区将立刻删除涉嫌侵权内容。