CentOS 7 下使用yum安装MySQL5.7.20 最简单 图文详解

Posted on 2020-05-26 01:27  jiaoqing。  阅读(277)  评论(0)    收藏  举报

转载博主:https://blog.csdn.net/z13615480737/article/details/78906598

转载博主最新:https://blog.csdn.net/weixin_38103993/article/details/134328637

参考:https://blog.csdn.net/strivew/article/details/120905980

yum -y install mysql-server 报错:

Removing mariadb-libs.x86_64 1:5.5.56-2.el7 - u due to obsoletes from mysql-community-libs.x86_64 0:5.6.38-2.el7 - u
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.56-2.el7 will be an update
---> Package mariadb-libs.x86_64 1:5.5.56-2.el7 will be an update
---> Package mariadb-server.x86_64 1:5.5.56-2.el7 will be an update
--> Processing Dependency: mariadb-server for package: akonadi-mysql-1.9.2-4.el7.x86_64
--> Finished Dependency Resolution
Error: Package: akonadi-mysql-1.9.2-4.el7.x86_64 (@anaconda)
           Requires: mariadb-server
           Removing: 1:mariadb-server-5.5.52-1.el7.x86_64 (@anaconda)
               mariadb-server = 1:5.5.52-1.el7
           Obsoleted By: mysql-community-server-5.6.38-2.el7.x86_64 (mysql56-community)
               Not found
           Updated By: 1:mariadb-server-5.5.56-2.el7.x86_64 (base)
               mariadb-server = 1:5.5.56-2.el7
 You could try using --skip-broken to work around the problem
 You could try running: rpm -Va --nofiles --nodigest

报错原因 :软件包依赖 mariadb组件

解决方案:

yum -y remove mariadb-libs

运行

yum install mysql-community-server

配置mysql

service mysqld restart
mysql -u root
mysql> set password for 'root'@'localhost' =password('your password'); 

 转载博主:https://www.cnblogs.com/xuyatao/p/7998057.html

 

博客园  ©  2004-2025
浙公网安备 33010602011771号 浙ICP备2021040463号-3