oceanbase / obdeploy

A deployer and package manager for OceanBase open-source software.
https://open.oceanbase.com
GNU General Public License v3.0
87 stars 132 forks source link

obd test mysqltest fail #40

Closed longdafeng closed 4 months ago

longdafeng commented 3 years ago
admin@obdriver:~$ obd test mysqltest obtest
Get local repositories and plugins ok
Open ssh connection ok
Cluster status check ok
Connect obproxy(172.30.62.203:2883) ok
[ERROR] /u01/obclient/bin/mysqltest: unknown variable 'default-character-set=utf8mb4'

mysqltest is not an executable file. please use `--mysqltest-bin` to set
You may not have obclient installed
admin@obdriver:~$ which obclient
/app/mariadb/bin/obclient
admin@obdriver:~$ which obclient
/app/mariadb/bin/obclient
admin@obdriver:~$ cat /etc/os-release
PRETTY_NAME="Debian GNU/Linux 9 (stretch)"
NAME="Debian GNU/Linux"
VERSION_ID="9"
VERSION="9 (stretch)"
VERSION_CODENAME=stretch
ID=debian
HOME_URL="https://www.debian.org/"
SUPPORT_URL="https://www.debian.org/support"
BUG_REPORT_URL="https://bugs.debian.org/"
admin@obdriver:~$ uname -a
Linux obdriver 4.9.0-16-amd64 #1 SMP Debian 4.9.272-1 (2021-06-21) x86_64 GNU/Linux
frf12 commented 3 years ago

ob的mysqltest需要使用obclient包提供mysqltest这个binary。obclient默认安装路径是/u01/obclient。对应的mysqltest的路径为 /u01/obclient/bin/mysqltest。根据你提供的which obclient返回的信息看,你的obclient的安装路径并非默认路径。请查看该路径下是否有mysqltest这个binary。如存在,请在执行

obd test mysqltest --mysqltest-bin 当前mysqltest binary所在路径

如不存在,请使用obclient rpm包安装obclient