[root@NEWZABBIXSERVER app]# grep "password" /var/log/mysqld.log 2022-11-02T06:12:35.221860Z 1 [Note] A temporary password is generated for root@localhost: wjuC<jv7!7um [root@NEWZABBIXSERVER app]#
即root临时密码为:wjuC<jv7!7um,用此临时密码登录后修改:
[root@NEWZABBIXSERVER /]# mysql -uroot -p Enter password: Welcome to the MySQL monitor. Commands end with ; or g. Your MySQL connection id is 2 Server version: 5.7.40
Copyright (c) 2000, 2022, Oracle and/or its affiliates.
Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.
Type 'help;' or 'h' for help. Type 'c' to clear the current input statement. mysql>