Comments (10)
After checking the dependencies of the MySQL package on my local machine, I found that MySQL is dynamically linked.
ldd /usr/bin/mysql
linux-vdso.so.1 => (0x00007fff35edf000)
/lib/libsysconf-alipay.so (0x00007f6175fc5000)
libpthread.so.0 => /lib64/libpthread.so.0 (0x00007f6175d91000)
libz.so.1 => /lib64/libz.so.1 (0x00007f6175b7b000)
libdl.so.2 => /lib64/libdl.so.2 (0x00007f6175977000)
libssl.so.10 => /lib64/libssl.so.10 (0x00007f6175705000)
libcrypto.so.10 => /lib64/libcrypto.so.10 (0x00007f61752a1000)
libncurses.so.5 => /lib64/libncurses.so.5 (0x00007f617507a000)
libtinfo.so.5 => /lib64/libtinfo.so.5 (0x00007f6174e50000)
libstdc++.so.6 => /lib64/libstdc++.so.6 (0x00007f6174b48000)
libm.so.6 => /lib64/libm.so.6 (0x00007f6174846000)
libc.so.6 => /lib64/libc.so.6 (0x00007f6174478000)
/lib64/ld-linux-x86-64.so.2 (0x00007f617672e000)
libgssapi_krb5.so.2 => /lib64/libgssapi_krb5.so.2 (0x00007f617422a000)
libkrb5.so.3 => /lib64/libkrb5.so.3 (0x00007f6173f41000)
libcom_err.so.2 => /lib64/libcom_err.so.2 (0x00007f6173d3d000)
libk5crypto.so.3 => /lib64/libk5crypto.so.3 (0x00007f6173b09000)
libgcc_s.so.1 => /lib64/libgcc_s.so.1 (0x00007f61738f3000)
libkrb5support.so.0 => /lib64/libkrb5support.so.0 (0x00007f61736e2000)
libkeyutils.so.1 => /lib64/libkeyutils.so.1 (0x00007f61734de000)
libresolv.so.2 => /lib64/libresolv.so.2 (0x00007f61732c4000)
libselinux.so.1 => /lib64/libselinux.so.1 (0x00007f617309c000)
libpcre.so.1 => /lib64/libpcre.so.1 (0x00007f6172e3b000)
from obclient.
OS: ubuntu server 22.04.2
OB: OB-server-4.1.0
问题相同,稳定复现
from obclient.
root@MQBOOK:~# lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description: Ubuntu 22.04.2 LTS
Release: 22.04
Codename: jammy
root@MQBOOK:~# obclient --version
obclient Ver Distrib 10.4.18-MariaDB, for Linux (x86_64) using readline 5.1
When obclient is used, the backspace key on the keyboard is abnormal 。
If the mysql client is used, no problem is found.
from obclient.
@kztao @meiq4096 @protectione055 Thanks for your feedback.
The developer is working on this issue, he is try to find out the root cause.
Later he will give us some feedback.
from obclient.
@unique5945 @longdafeng @meiq4096 @protectione055 @kztao
The issue is caused by obclient using the readline library to implement input capability, which depends on the Curses library. However, Curses has different implementations on CentOS and Ubuntu. If the library is dynamically linked, it can work on both CentOS and Ubuntu, but both systems need to have Curses installed. Currently, obclient is statically compiled on CentOS, so running it directly on Ubuntu can cause problems.
from obclient.
If using dynamically linked, it is likely to bring compatibility issues. How does mysql resolve this problem? @kongchengzhuge
from obclient.
Is MySQL on Ubuntu installed using a method similar to apt? If so, then this method is similar to compiling on Ubuntu and there should be no issues with dependencies. @longdafeng @meiq4096
from obclient.
root@MQBOOK:~# ldd /usr/bin/mysql
linux-vdso.so.1 (0x00007fff875f2000)
libedit.so.2 => /lib/x86_64-linux-gnu/libedit.so.2 (0x00007ff479667000)
libzstd.so.1 => /lib/x86_64-linux-gnu/libzstd.so.1 (0x00007ff479598000)
libssl.so.3 => /lib/x86_64-linux-gnu/libssl.so.3 (0x00007ff4794f4000)
libcrypto.so.3 => /lib/x86_64-linux-gnu/libcrypto.so.3 (0x00007ff4790b2000)
libresolv.so.2 => /lib/x86_64-linux-gnu/libresolv.so.2 (0x00007ff47909e000)
libstdc++.so.6 => /lib/x86_64-linux-gnu/libstdc++.so.6 (0x00007ff478e74000)
libgcc_s.so.1 => /lib/x86_64-linux-gnu/libgcc_s.so.1 (0x00007ff478e52000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007ff478c2a000)
/lib64/ld-linux-x86-64.so.2 (0x00007ff479d53000)
libtinfo.so.6 => /lib/x86_64-linux-gnu/libtinfo.so.6 (0x00007ff478bf8000)
libbsd.so.0 => /lib/x86_64-linux-gnu/libbsd.so.0 (0x00007ff478be0000)
libm.so.6 => /lib/x86_64-linux-gnu/libm.so.6 (0x00007ff478af9000)
libmd.so.0 => /lib/x86_64-linux-gnu/libmd.so.0 (0x00007ff478aea000)
root@MQBOOK:~#
root@MQBOOK:~# apt list --installed |grep mysql
WARNING: apt does not have a stable CLI interface. Use with caution in scripts.
mysql-client-8.0/jammy-security,jammy-updates,now 8.0.33-0ubuntu0.22.04.2 amd64 [installed,automatic]
mysql-client-core-8.0/jammy-security,jammy-updates,now 8.0.33-0ubuntu0.22.04.2 amd64 [installed,automatic]
mysql-client/jammy-security,jammy-updates,now 8.0.33-0ubuntu0.22.04.2 all [installed]
mysql-common/jammy,now 5.8+1.0.8 all [installed,automatic]
root@MQBOOK:~# mysql --version
mysql Ver 8.0.33-0ubuntu0.22.04.2 for Linux on x86_64 ((Ubuntu))
from obclient.
@kongchengzhuge @meiq4096 @longdafeng
Is there any solution?
I need to use obclient on ubuntu22.04/debian11
from obclient.
在debian上构建的过程记录了一下, 我自己能成功构建出obclient并且解决了输入异常的问题
https://zhuanlan.zhihu.com/p/678874871
from obclient.
Related Issues (20)
- obclient 连接数据库失败,怎么排查? HOT 1
- 开源 obclient 有计划支持连接 oracle 模式吗? HOT 1
- obclient是否可以在有F5或其他场景下的透传client ip到OBServer/obproxy HOT 1
- 请问哪里能看到 obclient 的项目进展?
- obclient 和 mysql 客户端连接 OB 有啥区别?
- 使用 yum 安装 OBClient 出现问题是为什么呀 HOT 1
- 请问哪里能看到 obclient 的项目进展? HOT 3
- obclient 和 mysql 客户端连接 OB 有啥区别? HOT 2
- Can we transform obclient into an OS agnostic(linux/unix like) client? HOT 1
- 希望支持类似MySQL的\help语法 HOT 1
- [Bug]: need support on OpenSUSE15 and FedoraOS 37 HOT 1
- [Bug]: [OBClient 2.2.3] "\G" could not mark the end of sql statements in some cases
- [Doc]: Please add CODE_OF_CONDUCT.md document
- [Doc]: Add document to show how to install
- [Feature]: Permanently change the NLS_DATE_FORMAT setting
- We need a windows version client tools HOT 1
- Auto-complete keywords
- Linux命令行登录OceanBase输入use命令导致键盘异常 HOT 4
- obclient 连接 OB root 密码忘记怎么办? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from obclient.