Pawan Bahuguna

Let's Learn and Share
Menu
  • Home
  • Free Books
  • RHEL 7 Books
  • Practice Papers
  • Contact
  • Privacy

Preparing for RHCSA or RHCE Certification? >>> Check RHEL 7 : RHCSA & RHCE Practice Papers

YES, Show Me Sample Papers.
Home
Linux
Public key for MySQL-Server-5.6.rpm is not Installed [Solved]
Linux

Public key for MySQL-Server-5.6.rpm is not Installed [Solved]

Pawan Bahuguna

MySQL is the world’s most popular Open Source SQL database management system and I too thought giving it a try and learn MySQL server on Red hat Linux operating system some time ago. Being a free software MySQL is easy to download from their official website. Many big companies and organization use the MySQL database server as it is very fast, reliable, and easy to use.

 

Downloading any software from the internet and installing it on your machine is not a big task but sometimes we may face some issue/error where we are unable to install the software and continuously gets an error.

 

Recommended Article: Passed RHCSA & RHCE Exam with Good Marks

 

When I downloaded latest MySQL server package from their official website, I was very happy and thought to work immediately after installing the MySQL server.

But when I unzip the downloaded tar file and run RPM command to install it, I was surprised to see the Public key error which is given below.

Advertisements

 

Linux MySql public key Error

 

Transaction Summary
=============================================================================
Install 1 Package(s)
Upgrade 0 Package(s)
 
Total size: 212 M
Installed Size: 212 M
Is this ok [y/N]: y
Downloading Packages:
warning: rpmts_HdrFromFdno: V3 DSA/SHA1 signature: key ID 5072e1f5: NOKEY


Public key for MySQL-server-5.6.17-1.el6.i686.rpm is not installed

So after reading and analyzing this error carefully, I came to the conclusion that this package needs a public key to install, which was missing on my Linux OS. This is mainly due to when our package repository checks for keys.

So there can be two solution of it. First we can install the key from the repository we are using and secondly we can configure our YUM such that it does not check for key’s.

I used the second method, as it was very easy. I just modified my /etc/yum.conf file and disabled the gpgcheck option. This can be done by just putting gpgcheck value to zero from one.

 

Linux yum conf

 

Command I used

 

# vim /etc/yum.conf

 

Now just edit the gpgcheck option. You can do this by entering r0 when your cursor is at 1, which is highlighted in the above image.

Just my making above changes I was able to proceed further with my installation and it solved ”
Public key for MySQL-Server-5.6.rpm is not installed” error for me.

But my problem does not end here. Now when I again try to install the MySQL server on Red hat Linux I was now getting file conflict error with file from package mysql-libs-5.1.47-4.el6.i686 error.

 

Linux MySql file conflict error

 

So, I Google’d about this error and found that there is some bug and It can be overcome by forcefully installing the MySQL RPM package.

# rpm -ivh --force MySQL-server-5.6.17-1.el6.i686.rpm

 

Note: Please uninstall previous version of MySQL before installing new.

 

After using above command my issue was resolved and I was able to install a MySQL server on my Red hat Linux machine.

Incoming search terms:

  • Solved PublickeyforMySQLServerisnotInstalled

Show your love by Sharing:

  • Click to share on Facebook (Opens in new window)
  • Click to share on Twitter (Opens in new window)
  • Click to share on WhatsApp (Opens in new window)
  • Click to share on Reddit (Opens in new window)
  • Click to share on Tumblr (Opens in new window)
  • Click to share on Pinterest (Opens in new window)
  • Click to share on LinkedIn (Opens in new window)
  • More
  • Click to share on Telegram (Opens in new window)
  • Click to print (Opens in new window)
  • Click to email a link to a friend (Opens in new window)
  • Click to share on Skype (Opens in new window)
  • Click to share on Pocket (Opens in new window)
Share
Pinterest
Linkedin
Tweet
Google+
Stumble
Email
Next Article

Related Articles

Downloading Kali Linux VMware Image and Running it in VMware Workstation
I am sure you guys must have heard of Kali …

Downloading Kali Linux VMware Image & Running it in VMware Workstation

Red Hat Released RHEL 7.4
Red Hat has made its enterprise level server Red Hat …

Red Hat Released RHEL 7.4 with Improved Security & Performance

Tags:Linux Tutorial

2 Comments

  1. Tomas

    “I used the second method, as it was very easy.”

    Laziness at its best 🙂

    February 10, 2016
    • Pawan Bahuguna

      Yes, I always like to work as simple as possible.

      February 10, 2016

Leave a Reply

Cancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

 

Find a domain starting at $0.48

powered by Namecheap

Like Our Book

Like Our Book

Lets Connect

  • Popular
  • Recent

Free Newsletter

Subscribe NOW!

We don’t spam! Read our privacy policy for more info.

Check your inbox or spam folder to confirm your subscription.

Pawan Bahuguna

Let's Learn and Share
Copyright © 2023 Pawan Bahuguna
Home | Privacy Policy | Contact