Testing HandlerSocket in a source distribution
You are viewing an old version of this article. View
the current version here.
If you want to test/use handlersocket with a source installation of MariaDB, here is one way to do this:
1. compile with one of the build scripts that has the -max option, like BUILD/compile-pentium64-max or BUILD/compile-pentium64-debug-max
2. start mysqld withing the test framework
cd mysql-test LD_LIBRARY_PATH=../plugin/handler_socket/libhsclient/.libs \ MTR_VERSION=1 perl mysql-test-run.pl --start-and-exit 1st \ --mysqld=--plugin-dir=../plugin/handler_socket/handlersocket/.libs \ --mysqld=--loose-handlersocket_port=9998 \ --mysqld=--loose-handlersocket_port_wr=9999 \ --master_port=9306 --mysqld=--innodb
This will end with:
Servers started, exiting
3. load handlersocket
client/mysql -uroot --protocol=tcp --port=9306 \ -e 'INSTALL PLUGIN handlersocket soname "handlersocket.so"'
4. configure and compile the handlersocket perl module
cd plugin/handler_socket/perl-Net-HandlerSocket perl Makefile.PL make
If you would like to install the handlersocket perl module permanently, you should do:
make install
If you do this, you don't have to set PERL5LIB below.
4. run handlersocket test suite
cd plugin/handler_socket/regtest/test_01_lib MYHOST=127.0.0.1 MYPORT=9306 LD_LIBRARY_PATH=../../libhsclient/.libs/ \ PERL5LIB=../common:../../perl-Net-HandlerSocket/lib:../../perl-Net-HandlerSocket/blib/arch/auto/Net/HandlerSocket/ ./run.sh
Comments
Comments loading...
Content reproduced on this site is the property of its respective owners,
and this content is not reviewed in advance by MariaDB. The views, information and opinions
expressed by this content do not necessarily represent those of MariaDB or any other party.