V
V
Valery2017-10-07 23:29:56
MySQL
Valery, 2017-10-07 23:29:56

How to install HandlerSocket in Percona in Docker?

There is a docker container FROM percona:5.7
In addition to the elementary tuning of my.cnf, nothing else is done.
I would like to install the HandlerSocket plugin inside.
Trying to run

RUN service mysql start && mysql -u root -e "install plugin handlersocket soname 'handlersocket.so'"

But I'm getting
ERROR 2002 (HY000): Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2)

Most likely it is necessary to act somehow differently, but something I can not think of anything.
Who has already encountered, tell me how to do it?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
N, 2019-08-24
@Fernus

In my.conf . . .

[mysqld]

# ...

plugin_maturity=beta
plugin-load=handlersocket.so

#handlersocket_address=0.0.0.0
#handlersocket_port=9998
#handlersocket_port_wr=9999

# ...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question