I installed MariaDB on a computer with CentOS using the instructions given here:
https://mariadb.com/kb/en/mariadb-pa...tup-and-usage/
The basic command I used was
Code:
sudo yum install MariaDB-server MariaDB-client
and I did not install Maxscale or percona
Mariadb installed successfully, but now when I go to the terminal and type in a command that doesn't exist, I get a "Failed to download gpg key" error message.
For example, when I type in ftp and press enter, previously I would have got a message indicating that ftp was not installed, and I would have got some recommendations on which command I meant and would like to download. However, now I get this:
Code:
[username@localhost ~]$ ftp
bash: ftp: command not found...
Failed to search for file: Failed to download gpg key for repo 'mariadb-main': Curl error (37): Couldn't read a file:// file for file:///etc/pki/rpm-gpg/MariaDB-Server-GPG-KEY [Couldn't open file /etc/pki/rpm-gpg/MariaDB-Server-GPG-KEY]
[username@localhost ~]$
I understand this is because because the file etc/yum.repos.d/maradb.repo has an entry gpgkey = file:///etc/pki/rpm-gpg/MariaDB-Server-GPG-KEY and the MariaDB-Server-GPG-KEY file does not exist in etc/pki/rpm-gpg
I think this file should have been copied to this location automatically when I installed Mariadb, but didn't for some reason. Is there a way I can create or download this file manually to make this error message go away?