web-dev-qa-db-ja.com

CentOS7へのMySqlのインストールに失敗する

なぜそれはmariadbと関係があるのですか? CentOS 7を新規インストールし、MySqlコミュニティバージョンをインストールしたいと思いました。最初にMariadbサーバーをインストールする必要があると言われているようです。

# yum install mysql-community-server
Loaded plugins: fastestmirror, langpacks
Loading mirror speeds from cached hostfile
 * base: linux.mirrors.es.net
 * extras: linux.mirrors.es.net
 * updates: linux.mirrors.es.net
Resolving Dependencies
--> Running transaction check
---> Package mariadb-server.x86_64 1:5.5.35-3.el7 will be obsoleted
--> Processing Dependency: mariadb-server for package: akonadi-mysql-1.9.2-4.el7.x86_64
---> Package mysql-community-server.x86_64 0:5.6.25-2.el7 will be obsoleting
--> Processing Dependency: mysql-community-common(x86-64) = 5.6.25-2.el7 for package: mysql-community-server-5.6.25-2.el7.x86_64
--> Processing Dependency: mysql-community-client(x86-64) = 5.6.25-2.el7 for package: mysql-community-server-5.6.25-2.el7.x86_64
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.35-3.el7 will be obsoleted
---> Package mariadb-server.x86_64 1:5.5.35-3.el7 will be updated
---> Package mariadb-server.x86_64 1:5.5.41-2.el7_0 will be an update
--> Processing Dependency: mariadb-libs(x86-64) = 1:5.5.41-2.el7_0 for package: 1:mariadb-server-5.5.41-2.el7_0.x86_64
--> Processing Dependency: mariadb(x86-64) = 1:5.5.41-2.el7_0 for package: 1:mariadb-server-5.5.41-2.el7_0.x86_64
---> Package mysql-community-client.x86_64 0:5.6.25-2.el7 will be obsoleting
---> Package mysql-community-common.x86_64 0:5.6.25-2.el7 will be installed
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.35-3.el7 will be updated
---> Package mariadb.x86_64 1:5.5.41-2.el7_0 will be an update
---> Package mariadb-libs.x86_64 1:5.5.35-3.el7 will be obsoleted
---> Package mariadb-libs.x86_64 1:5.5.35-3.el7 will be updated
---> Package mariadb-libs.x86_64 1:5.5.41-2.el7_0 will be an update
---> Package mysql-community-libs.x86_64 0:5.6.25-2.el7 will be obsoleting
Removing mariadb-server.x86_64 1:5.5.41-2.el7_0 - u due to obsoletes from mysql-community-server.x86_64 0:5.6.25-2.el7 - u
Removing mariadb.x86_64 1:5.5.41-2.el7_0 - u due to obsoletes from mysql-community-client.x86_64 0:5.6.25-2.el7 - u
Removing mariadb-libs.x86_64 1:5.5.41-2.el7_0 - u due to obsoletes from mysql-community-libs.x86_64 0:5.6.25-2.el7 - u
--> Restarting Dependency Resolution with new changes.
--> Running transaction check
---> Package mariadb.x86_64 1:5.5.41-2.el7_0 will be an update
---> Package mariadb-libs.x86_64 1:5.5.41-2.el7_0 will be an update
---> Package mariadb-server.x86_64 1:5.5.41-2.el7_0 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.35-3.el7.x86_64 (@anaconda)
               mariadb-server = 1:5.5.35-3.el7
           Obsoleted By: mysql-community-server-5.6.25-2.el7.x86_64 (mysql56-community)
               Not found
           Updated By: 1:mariadb-server-5.5.41-2.el7_0.x86_64 (base)
               mariadb-server = 1:5.5.41-2.el7_0
8
user697911

CentOS7では-MariaDBはすでにインストールされています。このため、問題が発生しています。{MariaDBはMySQLの互換性のある実装です}。 Mysqlをインストールする場合は、最初に現在の既存のMariDBを削除する必要があります。

ステップ1:Maria DBを完全に削除します。つまり、yum-yはmariadb-libsを削除します。

ステップ2:MySQLをインストールする

     i. wget http://dev.mysql.com/get/mysql57-community-release-el7-7.noarch.rpm
     ii. yum localinstall mysql57-community-release-el7-7.noarch.rpm
     iii. yum repolist enabled | grep "mysql.*-community.*"
     iv. yum install mysql-community-server
     v. yum-config-manager --disable mysql57-community
     vi. yum-config-manager --enable mysql56-community
     viii. service mysqld start
     ix. service mysqld status
     x. mysql --version
     xi. mysql -u root -p

よろしく、

マンジュナスナイク

13
Manjunath

最初にMaiadbを削除する必要があります。

# yum -y remove mariadb-libs
7
Tokyo user