CentOS7安装MySQL 错误:软件包:akonadi-mysql-1.9.2-4.el7.x86_64 (@anaconda)

wget http://repo.mysql.com/mysql-community-release-el7-5.noarch.rpm
rpm -ivh mysql-community-release-el7-5.noarch.rpm
yum install mysql-community-server

报错

错误:软件包:akonadi-mysql-1.9.2-4.el7.x86_64 (@anaconda)
          需要:mariadb-server
          正在删除: 1:mariadb-server-5.5.60-1.el7_5.x86_64 (@anaconda)
              mariadb-server = 1:5.5.60-1.el7_5
          取代,由: mysql-community-server-5.6.44-2.el7.x86_64 (mysql56-community)
              未找到
 您可以尝试添加 --skip-broken 选项来解决该问题
 您可以尝试执行:rpm -Va --nofiles --nodigest

运行

yum -y remove mariadb-libs
yum install mysql-community-server

配置MySQL

service mysqld restart
mysql -u root

配置root密码

mysql> set password for 'root'@'localhost'=password('2121921bama');

 

posted @ 2019-07-09 16:25  YangDanMua  阅读(5106)  评论(0编辑  收藏  举报