I can't install mariadb 10.4 never mysql 8

Issues related to applications and software problems and general support
Post Reply
cedler
Posts: 5
Joined: 2021/05/17 10:41:21

I can't install mariadb 10.4 never mysql 8

Post by cedler » 2021/05/17 11:04:30

Good morning,
I want to install magento 2.4.2 but it don't support mariadb 10.5... only mariadb 10.4 or mysql 8
I did succeed the first time to install mariadb 10.4 but after a general update it updated automatically mariadb to 5 version...
I uninstalled mariadb, tried to reinstall with this code in mariaDB.repo or mariadb.repo :

Code: Select all

# MariaDB 10.4 CentOS repository list - created 2021-05-17 09:38 UTC
# https://mariadb.org/download/
[mariadb]
name = MariaDB
baseurl = https://ftp.igh.cnrs.fr/pub/mariadb/yum/10.4/centos8-amd64
module_hotfixes=1
gpgkey=https://ftp.igh.cnrs.fr/pub/mariadb/yum/RPM-GPG-KEY-MariaDB
gpgcheck=1
I tried too to install mysql but always it propose me mariadb5...
Any ideas?

I attache you a screenshot of putty :
screenshot_putty.jpg
screenshot_putty.jpg (236.23 KiB) Viewed 855 times

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: I can't install mariadb 10.4 never mysql 8

Post by TrevorH » 2021/05/17 12:16:55

You have another repo called mariadb-main that is enabled and supplies 10.5.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

cedler
Posts: 5
Joined: 2021/05/17 10:41:21

Re: I can't install mariadb 10.4 never mysql 8

Post by cedler » 2021/05/17 14:28:54

ok, the repo mariadb-main seems not to be in /etc/yum.repo.d
Do you know where he is in order I can edit him?

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: I can't install mariadb 10.4 never mysql 8

Post by jlehtone » 2021/05/17 15:35:10

cedler wrote:
2021/05/17 14:28:54
ok, the repo mariadb-main seems not to be in /etc/yum.repo.d
How did you look? grep mariadb /etc/yum.repo.d/*.repo ?

Regardless of location:

Code: Select all

sudo dnf config-manager --disable mariadb-main
You have apparently multiple, enabled MariaDB or MySQL repositories. I would disable all that I don't need.
(In fact, I keep some needed repos disabled too and enable them only explicitly, ad hoc.)

cedler
Posts: 5
Joined: 2021/05/17 10:41:21

Re: I can't install mariadb 10.4 never mysql 8

Post by cedler » 2021/05/17 18:12:15

theses commands don't works, sorry...
screenshot_putty3.jpg
screenshot_putty3.jpg (217.05 KiB) Viewed 809 times

User avatar
jlehtone
Posts: 4523
Joined: 2007/12/11 08:17:33
Location: Finland

Re: I can't install mariadb 10.4 never mysql 8

Post by jlehtone » 2021/05/17 18:25:05

Sorry, I did copy-paste name of directory from your post.
The repo configs should be in /etc/yum.repos.d/, not in /etc/yum.repo.d/

You seem to have other issues too.

cedler
Posts: 5
Joined: 2021/05/17 10:41:21

Re: I can't install mariadb 10.4 never mysql 8

Post by cedler » 2021/05/17 18:34:05

screenshot_putty5.jpg
screenshot_putty5.jpg (41.07 KiB) Viewed 801 times

cedler
Posts: 5
Joined: 2021/05/17 10:41:21

Re: I can't install mariadb 10.4 never mysql 8

Post by cedler » 2021/05/17 19:39:26

ok,
I have list the repos :
yum list installed
and then
yum remove '*Maria*'
and then
dnf install mysql-server
and it works without conflicts... :-)
Thanks

Post Reply