安装mysql

mysql-community-common

mysql-community-libs

mysql-community-client

mysql-community-server

前三个都rpm按照成功,第四个安装失败

[root@ssltest mysql-rpm]# rpm -ivh mysql-community-server-5.7.23-1.el7.x86_64.rpm

报错

warning: mysql-community-server-5.7.23-1.el7.x86_64.rpm: Header V3 DSA/SHA1 Signature, key ID 5072e1f5: NOKEY

Preparing… ################################# [100%]

Updating / installing…

1:mysql-community-server-5.7.23-1.e################################# [100%]

error: unpacking of archive failed on file /usr/bin/myisam_ftdump;60013ba2: cpio: read failed - No such file or directory

error: mysql-community-server-5.7.23-1.el7.x86_64: install failed

ll发现server没有w权限

d3f968725f82fd3660231347dad2a5d8.png

赋予w权限

重新

rpm -ivh mysql-community-server-5.7.23-1.el7.x86_64.rpm

e37e5ed24c88200898264db135dc0d91.png

终于可以了

service mysqld status,出现dead,说明还没启动

1e5d746644c0a968301ab754a10b25fb.png

安装完,多了bin/mysql,mysql.1.gz

2cd73654c0bc982e41893fc91c37ef69.png

启动

[root@localhost src]# service mysqld start

service mysqld status

ce02a57d8f213cdc288c717943814425.png

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐