yum -y install mysql-community-server安装报错

730 阅读1分钟

The downloaded packages were saved in cache until the next successful transaction. You can remove cached packages by executing 'yum clean packages'. Error: Transaction test error: file /usr/share/mysql/charsets/Index.xml from install of mysql-community-common-5.7.32-1.el7.x86_64 conflicts with file from package mysql-common-8.0.21-1.module_el8.2.0+493+63b41e36.x86_64 file /usr/share/mysql/charsets/armscii8.xml from install of mysql-community-common-5.7.32-1.el7.x86_64 conflicts with file from package mysql-common-8.0.21-1.module_el8.2.0+493+63b41e36.x86_64 file /usr/share/mysql/charsets/ascii.xml from install of mysql-community-common-5.7.32-1.el7.x86_64 conflicts with file from package mysql-common-8.0.21-1.module_el8.2.0+493+63b41e36.x86_64 file /usr/share/mysql/charsets/cp1250.xml from install of mysql-community-common-5.7.32-1.el7.x86_64 conflicts with file from package mysql-common-8.0.21-1.module_el8.2.0+493+63b41e36.x86_64

原因:和 mysql-common包冲突了 解决方法:删除mysql-common包(yum remove mysql-common),再执行yum -y install mysql-community-server