V
V
vlarkanov2017-10-06 09:59:39
linux
vlarkanov, 2017-10-06 09:59:39

How to get a list of IPs from which connections to the database are made?

Hello colleagues! There is a base that is accessed by many services (Percona Xtradb + Galera cluster, connection via maxscale). You need to get a list of unique IPs that connect to the database during, for example, a day. The main condition is to do without restarting both mysql and maxscale.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
Sergey, 2017-10-06
@feanor7

1. the list can be obtained in real time via netstat
2. you can enable log by port in iptables

D
Denis Sechin, 2017-10-06
@tamogavk

host where your base ass looks out to the world?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question