I use Fail2ban on a busy Debian-based database server to secure ssh against brute force attacks, but for performance reasons, I don't want to log every connection from the application server (it would be a big resource hog to read every query to log and parse that by Fail2ban - which is written in Python and is quite slow).
So I'm wondering if there are any built-in mechanisms in MySQL to counter brute-force attacks, or some other tricks to bind MySQL to listen only to particular IP addresses?
P.S. There is a similar question here, but as the answer mainly suggests Fail2ban and iptables, I think my question is not in that vein.