Linux环境MySQL Shell安装异常
安装mysql-shell-8.0.21-1.el7.x86_64.rpm时报异常:
error:unpacking of archive failed on file /usr/bin/mysqlsh:cpio:rename failed -Is a directory
error:mysql-shell-8.0.21-1.el7.x86_64.rpm install failed
原因:
安装mysql-shell-8.0.21-1.el7.x86_64.rpm
时,需要操作mysqlsh文件的权限,把mysqlsh文件删除即可
解决方案:
rm -rf /usr/bin/mysqlsh