安装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权限
赋予w权限
重新
rpm -ivh mysql-community-server-5.7.23-1.el7.x86_64.rpm
终于可以了
service mysqld status,出现dead,说明还没启动
安装完,多了bin/mysql,mysql.1.gz
启动
[root@localhost src]# service mysqld start
service mysqld status