Install MySQL 5.1 on CentOS 6.9 - mysql

I updated etc/yum.repos.d/CentOS-Base.repo file like that ($release=$releasever -> $release=6).
...
[base]
name=CentOS-$releasever -Base
mirrorlist=http://mirrorlist.centos.org/?release=6$arch=$basearch&repo=os&infra=$infra
#baseurl=http://mirror.centos.org/centos/$releasever/os/$basearch
...
And then updated yum too.
# sudo yum update
(base) [root#host ~]# yum list updates
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
YumRepo Error: All mirror URLs are not using ftp, http[s] or file.
Eg. </html>/
* base: mirrors.cat.pdx.edu
* centos-sclo-rh: repos.lax.layerhost.com
* centos-sclo-sclo: mirrors.cat.pdx.edu
* epel: mirrors.kernel.org
* extras: mirrors.vcea.wsu.edu
* remi-php73: mirror.sjc02.svwh.net
* remi-safe: mirror.sjc02.svwh.net
* updates: sjc.edge.kernel.org
then, I tried to install MySQL but it didn't work correctly.
# yum install mysql-server
...
--> Processing Dependency: libdb-4.7.so()(64bit) for package: rpm-libs-4.8.0-59.el6.x86_64
Package db4 is obsoleted by libdb4, but obsoleting package does not provide for requirements
---> Package sqlite.x86_64 0:3.6.20-1.el6_7.2 will be installed
--> Processing Conflict: libdb4-4.8.30-13.el7.x86_64 conflicts filesystem < 3
--> Finished Dependency Resolution
Error: Package: rpm-4.8.0-59.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: libdb4-utils-4.8.30-13.el7.x86_64 (epel)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: libdb4-4.8.30-13.el7.x86_64 (epel)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: iproute-2.6.32-57.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: pam-1.1.1-24.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: rpm-libs-4.8.0-59.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: libdb4 conflicts with filesystem-2.4.30-3.el6.x86_64
Error: Package: cyrus-sasl-lib-2.1.23-15.el6_6.2.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
Error: Package: 4:perl-5.10.1-144.el6.x86_64 (base)
Requires: libdb-4.7.so()(64bit)
Available: db4-4.7.25-22.el6.x86_64 (base)
libdb-4.7.so()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
How can I install MySQL on CentOS 6.9. Any version is ok.
Any help is appreciated.

Error: Package: rpm-4.8.0-59.el6.x86_64 (base)
Error: Package: libdb4-utils-4.8.30-13.el7.x86_64 (epel)
You are obviously mixing EL6 and EL7 packages.
Fix your installation by installing the proper EPEL configuration package.
BTW, CentOS 6 is close to its end of life (in November) so I heartily recommend using a more modern version.

Related

Unable to install MySQL on CENTOS7

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:
https://dev.mysql.com/doc/mysql-yum-repo-quick-guide/en/
https://www.mysql.r2schools.com/how-to-install-mysql-8-on-centos/
https://tecadmin.net/install-mysql-8-on-centos/#:~:text=MySQL%208%20is%20the%20latest,LInux%20using%20the%20package%20manager.
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
https://unix.stackexchange.com/questions/205500/i-can-not-install-mysql-using-yum-on-centos7
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?
I think I got it. Here is what I did to solve it.
### Step #1: – Remove previous installed packages and clear cache ###
# look for the mysql installed packages
sudo yum list installed | grep mysql
sudo yum remove mysql80-community-release.noarch
sudo yum clean all --verbose
#manually remove remaining mysql cache folders
#from: https://serverfault.com/questions/1028593/mysql-packages-skipped-dependency-problems
sudo rm -R /var/cache/yum/x86_64/7/mysql*
sudo yum update
from: https://tecadmin.net/install-mysql-8-on-centos/
### Step #2: – Setup Yum Repository ###
rpm -Uvh https://repo.mysql.com/mysql80-community-release-el7-3.noarch.rpm
### Step #3: – disable all repositories in mysql repo file. ###
sed -i 's/enabled=1/enabled=0/' /etc/yum.repos.d/mysql-community.repo
### Step #4 – Install MySQL Community Server ###
yum --enablerepo=mysql80-community install mysql-community-server
Got the following error:
The GPG keys listed for the "MySQL 8.0 Community Server" repository are already installed but they are not correct for this package.
Check that the correct key URLs are configured for this repository.
Failing package is: mysql-community-client-8.0.28-1.el7.x86_64
GPG Keys are configured as: file:///etc/pki/rpm-gpg/RPM-GPG-KEY-mysql
From
https://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/
### Step #5 –import the new GPG key ###
rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
### Step #6 – Re-run STEP #3 Install MySQL Community Server ###
yum --enablerepo=mysql80-community install mysql-community-server
Got multiple warning message related to every different language; for example the one related to 'english'
warning: file /usr/share/mysql/english/errmsg.sys: remove failed: No such file or directory
warning: file /usr/share/mysql/english: remove failed: No such file or directory
However, final messages were successful:
Installed:
mysql-community-libs.x86_64 0:8.0.28-1.el7
mysql-community-libs-compat.x86_64 0:8.0.28-1.el7
mysql-community-server.x86_64 0:8.0.28-1.el7
Dependency Installed:
mysql-community-client.x86_64 0:8.0.28-1.el7
mysql-community-client-plugins.x86_64 0:8.0.28-1.el7
mysql-community-common.x86_64 0:8.0.28-1.el7
mysql-community-icu-data-files.x86_64 0:8.0.28-1.el7
Replaced:
mariadb-libs.x86_64 1:5.5.68-1.el7
Complete!
### Step #7: test ###
mysql -V
# output #
mysql Ver 8.0.28 for Linux on x86_64 (MySQL Community Server - GPL)
### Step #8: Double check that no errors when running yum update ###
sudo yum update
Confirm by starting it manually, checking status,
sudo systemctl start mysqld
sudo systemctl status mysqld
In my case I just imported GPG-KEY:
sudo rpm --import https://repo.mysql.com/RPM-GPG-KEY-mysql-2022
After that next command runs without errors:
sudo yum install mysql-server -y
rpm -qa | grep mariadb
rpm -e XXX #If there is an already installed mariadb, uninstall it
rpm -e --nodeps xxx //If the preceding delete action does not work, try force delete
It did really do the magic.
I had a problem after step 4, had an error:
my.cnf from install of mysql-community-server-8.0.32-1.el7.x86_64 conflicts with file from package MariaDB-common...
I needed to run:
yum remove mariadb-libs
and then install MYSQL. Found that here >> MySQL won't install in CentOS due to conflict with mariadb
After that installation of mysql went smooth.

Can't Install Google Chrome in centos 6.9

[root#localhost yum.repos.d]# yum install google-chrome-stable
Loaded plugins: fastestmirror, refresh-packagekit, security
Setting up Install Process
Loading mirror speeds from cached hostfile
* base: ftp.iitm.ac.in
* epel: kartolo.sby.datautama.net.id
* extras: ftp.iitm.ac.in
* updates: ftp.iitm.ac.in
Resolving Dependencies
--> Running transaction check
---> Package google-chrome-stable.x86_64 0:63.0.3239.84-1 will be installed
--> Processing Dependency: libc.so.6(GLIBC_2.15)(64bit) for package: google-chrome-stable-63.0.3239.84-1.x86_64
--> Processing Dependency: libc.so.6(GLIBC_2.14)(64bit) for package: google-chrome-stable-63.0.3239.84-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.15)(64bit) for package: google-chrome-stable-63.0.3239.84-1.x86_64
--> Processing Dependency: libstdc++.so.6(GLIBCXX_3.4.14)(64bit) for package: google-chrome-stable-63.0.3239.84-1.x86_64
--> Processing Dependency: libgtk-3.so.0()(64bit) for package: google-chrome-stable-63.0.3239.84-1.x86_64
--> Processing Dependency: libgdk-3.so.0()(64bit) for package: google-chrome-stable-63.0.3239.84-1.x86_64
--> Finished Dependency Resolution
Error: Package: google-chrome-stable-63.0.3239.84-1.x86_64 (google-chrome)
Requires: libc.so.6(GLIBC_2.14)(64bit)
Error: Package: google-chrome-stable-63.0.3239.84-1.x86_64 (google-chrome)
Requires: libstdc++.so.6(GLIBCXX_3.4.14)(64bit)
Error: Package: google-chrome-stable-63.0.3239.84-1.x86_64 (google-chrome)
Requires: libc.so.6(GLIBC_2.15)(64bit)
Error: Package: google-chrome-stable-63.0.3239.84-1.x86_64 (google-chrome)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: google-chrome-stable-63.0.3239.84-1.x86_64 (google-chrome)
Requires: libgdk-3.so.0()(64bit)
Error: Package: google-chrome-stable-63.0.3239.84-1.x86_64 (google-chrome)
Requires: libgtk-3.so.0()(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
[root#localhost yum.repos.d]#

stuck on mysql installation

When I am installing mysql on centOS 7, on the step where it needs to type yum install mysql-server command, it is giving me these error messages:
Error: Package: mysql-community-client-5.6.31-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-libs-5.6.31-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
Error: Package: mysql-community-server-5.6.31-2.el7.x86_64 (mysql56-community)
Requires: libstdc++.so.6(GLIBCXX_3.4.15)(64bit)
Error: Package: mysql-community-server-5.6.31-2.el7.x86_64 (mysql56-community)
Requires: systemd
Error: Package: mysql-community-server-5.6.31-2.el7.x86_64 (mysql56-community)
Requires: libc.so.6(GLIBC_2.17)(64bit)
You could try using --skip-broken to work around the problem
You could try running: rpm -Va --nofiles --nodigest
Anyone know how to fix this?

Trying to install mysql-devel on CentOS

I am trying to install mysql-devel on my CentOS system and it's failing with some weird dependency issue. Here is the result I get when I try to install from the command line.
$ sudo yum install mysql-devel
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
* base: mirror.steadfast.net
* epel: epel.mirror.freedomvoice.com
* extras: linux.mirrors.es.net
* updates: ftp.linux.ncsu.edu
Setting up Install Process
...
...
--> Finished Dependency Resolution
Error: Package: mysql-5.1.69-1.el6_4.x86_64 (updates)
Requires: libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.66-2.el6_3.x86_64 (base)
libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.67-1.el6_3.x86_64 (updates)
libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.69-1.el6_4.x86_64 (updates)
libmysqlclient_r.so.16()(64bit)
Installed: mysql-libs-5.5.32-1.el6.remi.x86_64 (#remi)
Not found
Error: Package: mysql-devel-5.1.69-1.el6_4.x86_64 (updates)
Requires: libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.66-2.el6_3.x86_64 (base)
libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.67-1.el6_3.x86_64 (updates)
libmysqlclient_r.so.16()(64bit)
Available: mysql-libs-5.1.69-1.el6_4.x86_64 (updates)
libmysqlclient_r.so.16()(64bit)
Installed: mysql-libs-5.5.32-1.el6.remi.x86_64 (#remi)
Not found
Error: Package: mysql-5.1.69-1.el6_4.x86_64 (updates)
Requires: libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
Available: mysql-libs-5.1.66-2.el6_3.x86_64 (base)
libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
Available: mysql-libs-5.1.67-1.el6_3.x86_64 (updates)
libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
Available: mysql-libs-5.1.69-1.el6_4.x86_64 (updates)
libmysqlclient_r.so.16(libmysqlclient_16)(64bit)
Installed: mysql-libs-5.5.32-1.el6.remi.x86_64 (#remi)
Not found
Any ideas on how to address this?
i fixed this by uninstalling and re-installing mysql.

Problems Installing perl-DBD-MySQL

I'm having dependency problems installing perl-DBD-MySQL.
Server is running on Centos 6.4 and MySQL 5.5.31.
I ran this command
yum install perl-DBD-MySQL
Outputs:
Loaded plugins: fastestmirror, security Loading mirror speeds from
cached hostfile * base: mirror.nl.webzilla.com * extras:
mirror.nl.webzilla.com * updates: mirrors.supportex.net Setting up
Install Process Resolving Dependencies
--> Running transaction check
---> Package perl-DBD-MySQL.x86_64 0:4.013-3.el6 will be installed
--> Processing Dependency: libmysqlclient.so.16(libmysqlclient_16)(64bit) for package:
perl-DBD-MySQL-4.013-3.el6.x86_64
--> Processing Dependency: libmysqlclient.so.16()(64bit) for package: perl-DBD-MySQL-4.013-3.el6.x86_64
--> Finished Dependency Resolution Error: Package: perl-DBD-MySQL-4.013-3.el6.x86_64 (base)
Requires: libmysqlclient.so.16()(64bit) Error: Package: perl-DBD-MySQL-4.013-3.el6.x86_64 (base)
Requires: libmysqlclient.so.16(libmysqlclient_16)(64bit) You could try using --skip-broken to work around the problem You
could try running: rpm -Va --nofiles --nodigest
I noticed that I have libmysqlclient.so.18, and not libmysqlclient.so.16 on the server.
Any help is appreciated, thanks!
There's a conflict in the instaled modules on your system. Please make sure your system is up-to-date first. Use these commands:
yum upgrade -y
yum install perl-DBD-MySQL
You can fix your problem using the following command:
yum install perl-DBD-MySQL --enablerepo=*