我正在尝试在amazon ec2实例上安装mysql。而且我得到了以下错误。 请帮我修理一下。
$ sudo yum install mysql-server
Transaction check error:
file /usr/lib64/libmysqlclient.so.15.0.0 from install of MariaDB-compat-5.5.54-1.el6.x86_64 conflicts with file from package MySQL-shared-compat-5.6.23-1.el7.x86_64
file /usr/lib64/libmysqlclient.so.16.0.0 from install of MariaDB-compat-5.5.54-1.el6.x86_64 conflicts with file from package MySQL-shared-compat-5.6.23-1.el7.x86_64
file /usr/lib64/libmysqlclient_r.so.15.0.0 from install of MariaDB-compat-5.5.54-1.el6.x86_64 conflicts with file from package MySQL-shared-compat-5.6.23-1.el7.x86_64
file /usr/lib64/libmysqlclient_r.so.16.0.0 from install of MariaDB-compat-5.5.54-1.el6.x86_64 conflicts with file from package MySQL-shared-compat-5.6.23-1.el7.x86_64
答案 0 :(得分:0)
运行此命令:
rpm -e MySQL-shared-compat-5.6.23-1.el7.x86_64
然后尝试再次安装:
sudo yum install mysql-server