更改

如何在CentOS7中安装MySQL

添加313字节, 2022年3月24日 (四) 20:33
恢复45.77.171.9讨论)的编辑至Ytyzx的最后版本
因CentOS已经使用MariaDB替代了MySQL,如直接输入“yum install mysql-server”则安装MariaDB。
备注:本例中以minimal安装CentOS为例,如以其他方式安装或者已经安装MariaDB则建议首先卸载MariaDB,以防冲突。
 
== 下载RPM ==
[[File:CentOS7MySQL15.PNG]]
== 错误排除 ==  16.在使用YUM安装时提示“Warning: RPMDB altered outside of yum.”。[[File:RPMDBaltered1.png]]  17.故障原因为直接使用rpm安装时有可能导致此问题。[[File:RPMDBaltered2.png]]  18.输入“yum history sync”同步即可排除此故障。[[File:RPMDBaltered4.png]]
1,138
个编辑