cent os 6.5 安装 mysql 5.5出现warning

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/xiaobao5214/article/details/83618789

执行 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/

猜你喜欢

转载自blog.csdn.net/xiaobao5214/article/details/83618789
今日推荐