简体   繁体   中英

Error installing MYSQL 5.7 using Yum

I am beginner in installing mysql using YUM and I have looked into various forums, I don't understand why I am getting the following error.

Loaded plugins: fastestmirror, langpacks
Cannot open: mysql57-community-release-el7-3.10.0-229.el7.x86_64.noarch.rpm. 
Skipping.
Nothing to do

I did further analysis by executing following commands but still it didnt work.

sudo rm -f /var/lib/rpm/__*
sudo rpm --rebuilddb -v -v

Some further details:

  1. Linux version: Linux lptxukgcs06 3.10.0-229.el7.x86_64 #1 SMP Fri Mar 6 11:36:42 UTC 2015 x86_64 x86_64 x86_64 GNU/Linux
  2. The user which I am using has sudo priviledges.
  3. Yum Command: sudo yum localinstall mysql57-community-release-el7-3.10.0-229.el7.x86_64.noarch.rpm

Thank you for your time.

The command for installing RPM packages is:

rpm -ivh mysql57-community-release-el7-3.10.0-229.el7.x86_64.noarch.rpm

or sudo rpm -ivh mysql57-community-release-el7-3.10.0-229.el7.x86_64.noarch.rpm (root password required)

to uninstall, it is:

sudo rpm -e

And to see if package is installed:

rpm -q

Issue was: The .rpm file should be renamed with your linux server version number after you download from mysql website. Rename the file and execute the command: sudo yum localinstall mysql57-community-release-el7-3.10.0-229.el7.x86_64.noarch.rpm.

You can get the version from linux using: uname -a

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM