dbproxy安裝問題記錄

2021-08-17 09:46:01 字數 1956 閱讀 8025

git clone [email protected]:meituan-dianping/dbproxy.git

編譯原始碼並安裝(新增新檔案和修改版本的時候需要執行autogen.sh,注意docker centos:6.6 image下執行autogen.sh會失敗)

sh autogen.sh

sh bootstrap.sh

make && make install

執行sh bootstrap.sh 報錯

修改 bootstrap.sh 成下面這個樣子

#!/bin/sh 

base=$(cd "$(dirname "$0")"; pwd)

cd $base

./configure  --with-mysql=/usr/local/mysql/bin/mysql_config --prefix=/usr/local/mysql-proxy cflags="-s -o0" cppflags="-i/usr/local/mysql/include/" ldflags="-lm -ldl -lcrypto -ljemalloc" lua_cflags="-i/usr/include/" lua_libs="-l/usr/lib64 -llua"

執行 make && make install的時候報錯

network-mysqld-packet.c: in function 'network_mysqld_auth_challenge_new':

network-mysqld-packet.c:1470:9: error: 'client_secure_connection' undeclared (first use in this function)

client_secure_connection |

^network-mysqld-packet.c: in function 'network_mysqld_proto_get_auth_challenge':

network-mysqld-packet.c:1583:31: error: 'client_secure_connection' undeclared (first use in this function)

if (shake->capabilities & client_secure_connection)

1590    }

1685 network_mysqld_auth_response *network_mysqld_auth_response_new()

1773 

1773        if (auth->capabilities &client_reserved2  /*client_secure_connection*/)

1779        } else

1785        }

/tools/dbproxy-master/plugins/admin/admin-plugin.c

208 network_mysqld_plugin_proto(server_con_init)

/tools/dbproxy-master/src/network-mysqld-proto.h

48 // 不支援client_connect_attrs

49 #define mysql_protocol_capabilities (client_long_flag | client_connect_with_db | \

50                client_protocol_41 | client_transactions |client_reserved2 /*client_secure_connection*/)

51 .匯入mysql5.7庫檔案

echo '/usr/local/mysql/lib' >> /etc/ld.so.conf

ldconfig

tmux安裝問題記錄

redhat安裝tmux遇到如下錯誤 configure error libevent not found 說明libevent包沒有找到 簡單,那通過sudo yum install libevent 安裝唄,安裝玩之後發現還是同樣的錯誤。通過yum y search libevent檢視了一下,...

DEDECMS安裝問題記錄

問題 mysql 支援 on off 不支援無法使用本系統 熬到兩點解決了這個問題,拿來與大家分享。不多閒話了,下面是我最後解決的辦法,希望對同樣遇到這個問題的朋友有幫助。我用的php版本 php 5.1.1 win32 重新啟動iis 或是apache也要重啟一下 在命令提示符下逐一執行一下命令 ...

Docker安裝問題記錄

原因 沒有啟動docker守護程序 解決方案 service docker start docker php ext install 包名 docker run d p 80 80 name nginx v var nginx logs var log nginx v var nginx conf ...