今天在安装mysql提示错误

Public key for mysql-server-5.0.45-7.el5.i386.rpm is not installed

解决方法:
此时要导入rpm的签名信息即可
以root登录,执行下面命令
# rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-redhat-release

Linux版本是CentOS 5.4
执行下面命令
#rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-5