I'm on CentOS 7(CentOS Linux release 7.9.2009 (Core)) starting from scratch on a new server trying to install MySQL (7 or 8).
I have followed my steps -which I have successfully completed many times in the past, as well many other sites such as:
and many others
All the methods agree on these steps:
Download and add the following MySQL Yum repository
sudo wget https://dev.mysql.com/get/mysql80-community-release-el7-3.noarch.rpm
Note I tried different versions 7-5, and 8
install the downloaded package
sudo yum install mysql80-community-release-el7-3.noarch.rpm -y
install MySQL:
sudo yum install mysql-server -y
On Step #3 is where the installation fails
mysql -V
-bash: mysql: command not found
And I get all these errors
Error: Package: mysql-community-server-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libtirpc.so.3()(64bit)
Error: Package: mysql-community-libs-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: mysql-community-client-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: mysql-community-server-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: mysql-community-libs-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: mysql-community-client-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: mysql-community-server-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libtirpc.so.3(TIRPC_0.3.3)(64bit)
Error: Package: mysql-community-server-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.22)(64bit)
Error: Package: mysql-community-client-plugins-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.20)(64bit)
Error: Package: mysql-community-server-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: mysql-community-client-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: mysql-community-server-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
Error: Package: mysql-community-client-plugins-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: mysql-community-libs-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
Error: Package: mysql-community-client-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
Error: Package: mysql-community-server-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.8)(64bit)
Error: Package: mysql-community-client-plugins-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.8)(64bit)
Error: Package: mysql-community-client-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libncurses.so.6()(64bit)
Error: Package: mysql-community-client-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libtinfo.so.6()(64bit)
Error: Package: mysql-community-libs-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.21)(64bit)
Error: Package: mysql-community-server-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.11)(64bit)
Error: Package: mysql-community-client-plugins-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libc.so.6(GLIBC_2.25)(64bit)
Error: Package: mysql-community-server-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libc.so.6(GLIBC_2.28)(64bit)
Error: Package: mysql-community-server-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libtirpc.so.3(TIRPC_0.3.0)(64bit)
Error: Package: mysql-community-client-plugins-8.0.28-1.el8.x86_64 (mysql80-community)
Requires: libstdc++.so.6(CXXABI_1.3.9)(64bit)
I read this post which looks similar, but no luck either
the only version that I'm able to successfully install is a very old mysql version: 5.6
Any ideas/suggestions on what I am missing; or how to solve this?
user3891775 :
I think I got it. Here is what I did to solve it.\n### Step #1: – Remove previous installed packages and clear cache ###\n# look for the mysql installed packages\nsudo yum list installed | grep mysql\n\nsudo yum remove mysql80-community-release.noarch\n\nsudo yum clean all --verbose\n\n#manually remove remaining mysql cache folders\n#from: https://serverfault.com/questions/1028593/mysql-packages-skipped-dependency-problems\nsudo rm -R /var/cache/yum/x86_64/7/mysql*\n\nsudo yum update\n\nfrom: https://tecadmin.net/install-mysql-8-on-centos/\n### Step #2: – Setup Yum Repository ###\nrpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm\n\n### Step #3: – disable all repositories in mysql repo file. ###\nsed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/mysql-community.repo\n\n### Step #4 – Install MySQL Community Server ###\nyum --enablerepo=mysql80-community install mysql-community-server \n\nGot the following error:\nThe GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.\nCheck that the correct key URLs are configured for this repository.\n\n\n Failing package is: mysql-community-client-8.0.28-1.el7.x86_64\n GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql\n\nFrom\nhttps://forums.cpanel.net/threads/mysql-upgrade-process-failed-the-gpg-keys-listed-for-the-mysql-8-0-community-server-repository-are-already-installed-but-they-are-not-correct-for.697213/\n### Step #5 –import the new GPG key ###\nrpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022\n\n### Step #6 – Re-run STEP #3 Install MySQL Community Server ###\nyum --enablerepo=mysql80-community install mysql-community-server\n\nGot multiple warning message related to every different language; for example the one related to 'english'\nwarning: file /usr/share/mysql/english/errmsg.sys: remove failed: No such file or directory\nwarning: file /usr/share/mysql/english: remove failed: No such file or directory\n\nHowever, final messages were successful:\nInstalled:\n mysql-community-libs.x86_64 0:8.0.28-1.el7 \n mysql-community-libs-compat.x86_64 0:8.0.28-1.el7 \n mysql-community-server.x86_64 0:8.0.28-1.el7 \n\nDependency Installed:\n mysql-community-client.x86_64 0:8.0.28-1.el7 \n mysql-community-client-plugins.x86_64 0:8.0.28-1.el7 \n mysql-community-common.x86_64 0:8.0.28-1.el7 \n mysql-community-icu-data-files.x86_64 0:8.0.28-1.el7 \n\nReplaced:\n mariadb-libs.x86_64 1:5.5.68-1.el7 \n\nComplete!\n\n### Step #7: test ###\nmysql -V\n\n# output #\nmysql Ver 8.0.28 for Linux on x86_64 (MySQL Community Server - GPL)\n\n### Step #8: Double check that no errors when running yum update ###\nsudo yum update\n\nConfirm by starting it manually, checking status,\nsudo systemctl start mysqld\nsudo systemctl status mysqld\n\n\n\n\n",
2022-02-05T20:49:26