Pawan Bahuguna

Let's Learn and Share
Menu
  • Home
  • Books
    • Free Books
    • RHEL 7 Books
  • Practice Papers
  • Tools
    • Responsive Checker
  • Scripts
  • 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

 

1
2
3
4
5
6
7
8
9
10
11
12
13
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

 

1
# 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.

1
# 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
  • public key for mysql-community-client is not installed

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 this 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

Must Know Usage of grep Command with Examples
There are lots of commands in Unix/Linux which makes system …

Must Know Usage of “grep” Command with Examples

Red Hat Enterprise Linux 8
If you are a Linux system administrator or Linux enthusiast, …

Red Hat Enterprise Linux 8 Available for Download

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

Subscribe Below & Get RHEL 7 EXAM TIPS eBook

GET eBOOK NOW!

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

Check your inbox or spam folder to confirm your subscription.

  • Popular
  • Recent

Pawan Bahuguna

Let's Learn and Share
Copyright © 2021 Pawan Bahuguna
Home | Privacy Policy | Contact
loading Cancel
Post was not sent - check your email addresses!
Email check failed, please try again
Sorry, your blog cannot share posts by email.