cent os 6.5 安裝 mysql 5.5出現warning
阿新 • • 發佈:2018-11-08
執行 rpm -ivh MySQL-server-5.5.62-1.el6.x86_64.rpm 命令後出現
warning: MySQL-server-5.5.62-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY
解決辦法:
這是由於yum安裝了舊版本的GPG keys造成的,安裝命令增加 --force --nodeps 即可解決
rpm -ivh MySQL-server-5.5.62-1.el6.x86_64.rpm --force --nodeps
出現以下內容為安裝成功
warning: MySQL-server-5.5.62-1.el6.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY Preparing... ########################################### [100%] 1:MySQL-server ########################################### [100%] warning: user mysql does not exist - using root warning: group mysql does not exist - using root 181101 20:46:39 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap. 181101 20:46:39 [Note] /usr/sbin/mysqld (mysqld 5.5.62) starting as process 2198 ... 181101 20:46:39 [Note] Ignoring --secure-file-priv value as server is running with --bootstrap. 181101 20:46:39 [Note] /usr/sbin/mysqld (mysqld 5.5.62) starting as process 2205 ... PLEASE REMEMBER TO SET A PASSWORD FOR THE MySQL root USER ! To do so, start the server, then issue the following commands: /usr/bin/mysqladmin -u root password 'new-password' /usr/bin/mysqladmin -u root -h hadoop1 password 'new-password' Alternatively you can run: /usr/bin/mysql_secure_installation which will also give you the option of removing the test databases and anonymous user created by default. This is strongly recommended for production servers. See the manual for more instructions. Please report any problems at http://bugs.mysql.com/