在社区下载的压缩包,使用mysqlsh时,系统报错。
/mysqlsh: relocation error: /root/greatsql-shell-8.0.32-25-glibc2.28-x86_64/bin/../lib/mysqlsh/libc.so.6: symbol _dl_fatal_printf, version GLIBC_PRIVATE not defined in file ld-linux-x86-64.so.2 with link time reference。于是,我去官网下载相就的软件。具体地址为 https://cdn.mysql.com//Downloads/MySQL-Shell/mysql-shell-8.4.0-1.el7.x86_64.rpm 。
rpm -ivh mysql-shell-8.4.0-1.el7.x86_64.rpm ,系统提示warning: mysql-shell-8.4.0-1.el7.x86_64.rpm: Header V4 RSA/SHA256 Signature, key ID a8d3785c: NOKEY
error: Failed dependencies:
libyaml-0.so.2()(64bit) is needed by mysql-shell-8.4.0-1.el7.x86_64
系统提示缺乏组件,我们就安装。 yum install libyaml* -y
然后重新安装mysql-shell-8.4.0-1.el7.x86_64。