默认密码寻找
shell> sudo grep 'temporary password' /var/log/mysqld.log
2018-06-03T10:15:57.448920Z 5 [Note] [MY-010454] [Server] A temporary password is generated for root@localhost: 0xxXxxXx?xXX
修改密码:
mysql> ALTER USER 'root'@'localhost' IDENTIFIED BY '*{your-password}*';
阿里云服务器上安装mysql8.0+遇到的一些问题的记录_wegt mysql80-community-release-el8-1.noarch.rpm: 没-CSDN博客