[Sqlrelay-discussion] LD_PRELOAD problem
Brought to you by:
mused
|
From: D. V. <as...@gm...> - 2008-06-06 07:35:37
|
Hello,
I've got a problem with the mysql drop-in replacement library on Debian 4.0
Basically this:
vm-99:~# ldd `which mysql` | grep sql
libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0xb7d0a000)
vm-99:~# LD_PRELOAD=/usr/lib/libmysql50sqlrelay-0.37.1.so.1 ldd `which
mysql` | grep sql
/usr/lib/libmysql50sqlrelay-0.37.1.so.1 (0xb7eea000)
libmysqlclient.so.15 => /usr/lib/libmysqlclient.so.15 (0xb7c9a000)
libsqlrclient-0.37.1.so.1 =>
/usr/lib/libsqlrclient-0.37.1.so.1 (0xb79ca000)
It seems regardless I specify the mysql replacement library, the mysql
client library (which I've used for testing) was somehow "forced" to
use the original one.
It isn't working:
vm-99:~# LD_PRELOAD=/usr/lib/libmysql50sqlrelay-0.37.1.so.1 mysql
--host=localhost --port=9000 --user=root -p
Enter password:
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 0
Server version: 5.0.0
Type 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> show tables;
ERROR:
Failed to get a cursor id.
A network error may have ocurred.
mysql>
Do anyone have an idea why does it happen?
asd
--
Dániel Vásárhelyi
"He who asks a question is a fool for five minutes; he who does not
ask a question remains a fool forever"
Chinese proverb
|