mysql8.0.23使用xbstream命令时报错error while loading shared libraries: libssl.so: cannot open shared object file: No such file or directory
mysql8.0.23使用xbstream命令时报错:
[root@HKA-LCM701743 software]# xbstream -x < /data/xjk/backup/mysql_xtrak/10.21.55.126-backup_20220219030001.xbstream -C /data/mysql
xbstream: error while loading shared libraries: libssl.so: cannot open shared object file: No such file or directory
分析是环境变量问题。
解决方案:
1.
vi ~/.bash_profile
添加
export LD_LIBRARY_PATH=/usr/local/xtrabackup/lib/private:/usr/lib64:/usr/local/lib64:/usr/local/mysql/lib/private
####################################################################### # .bash_profile
Get the aliases and functions
if [ -f ~/.bashrc ]; then
. ~/.bashrc
fi
User specific environment and startup programs
PATH=$PATH:$HOME/bin
export LD_LIBRARY_PATH=/usr/local/xtrabackup/lib/private:/usr/lib64:/usr/local/lib64:/usr/local/mysql/lib/private
export PATH
##################################################################**
source ~/.bash_profile
问题解决
版权声明:本文为博主原创文章,未经博主允许不得转载。





