sudo grep 'temporary password' /var/log/MysqLd.log
[Note] A temporary password is generated for root@localhost: iuNj5ae!7lAa
上面的iuNj5ae!7lAa
只是一个示例。记得在使用MysqL_secure_installation
工具时更改此默认密码。
使用yum安装MysqL过程中报错
All matches were filtered out by modular filtering for argument: MysqL-community-server
全程选Y即可安装MysqL成功!!!
如果在第二步出现GPG验证不通过或Failed to start mariadb.service
重新运行
即可完美解决问题。