How to restrict access to phpmyadmin by ip address?

Hello!
How I can restrict access to phpmyadmin by ip addresses in Hestia Control Panel 1.6.9?
Only a few IP addresses should have access.
Thanks!

Create an ipset with those IPs
Close the MySQL port for all addresses except for the ipset.

Sorry. My last post makes no sense since it is phpmyadmin that you want to block and not MySQL itself.

You will need a custom nginx template or a .htpasswd file or a redirect of the .htaccess