全国直销电话:4006-854-568
IT-technology
以人为本,众志成城,以“用户至上”.“服务上乘”为原则,
追求产品和服务高质量,努力实现与客户之间真诚有效的沟通,
不断地圆梦、奔跑与腾飞。
新闻动态   NEWS
采用LNMP环境用Zabbix6.2搭建一个实用的中小企业IT运维监控平台-北京赛维博信科技发展有限公司
来源:本文摘自网络,如有侵权请联系删除 | 作者:svbx001 | 发布时间: 2022-11-08 | 9810 次浏览 | 分享到:
2.2.5修改root临时密码

mysql启动后,系统会自动为root用户设置一个临时密码,这个密码第一次登录后,需要修改:

先查看临时密码是多少:

[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>
 
 

服务热线

1391-024-6332