[root@localhost mysql]# ./bin/mysqld --initialize --user=mysql --basedir=/usr/local/mysql --datadir=/usr/local/mysql/data 2023-06-09T11:36:37.407805Z 0 [Warning] TIMESTAMP with implicit DEFAULT value is deprecated. Please use --explicit_defaults_for_timestamp server option (see documentation for more details). 2023-06-09T11:36:37.590406Z 0 [Warning] InnoDB: New log files created, LSN=45790 2023-06-09T11:36:37.618464Z 0 [Warning] InnoDB: Creating foreign key constraint system tables. 2023-06-09T11:36:37.673528Z 0 [Warning] No existing UUID has been found, so we assume that this is the first time that this server has been started. Generating a new UUID: e50ed5f9-06b9-11ee-918c-000c294c9c16. 2023-06-09T11:36:37.674532Z 0 [Warning] Gtid table is not ready to be used. Table 'mysql.gtid_executed' cannot be opened. 2023-06-09T11:36:37.675179Z 1 [Note] A temporary password is generated for root@localhost: v2Ea1;f:d3KR
时间: 2024-04-03 08:31:41 浏览: 153
CentOS Linux release 7.9.2009 安装 mysql-5.7.37-linux-glibc2.12-x8
根据提示信息,MySQL已经成功地进行了初始化,并生成了一个临时密码“v2Ea1;f:d3KR”用于root用户登录。您可以使用命令“./bin/mysql -u root -p”登录MySQL,并使用该临时密码进行身份验证。登录成功后,可以通过修改密码的方式来设置一个新的密码。具体命令为“ALTER USER 'root'@'localhost' IDENTIFIED BY 'new_password';”,其中“new_password”为您想要设置的新密码。
阅读全文