• We value your experience with Plesk during 2025
    Plesk strives to perform even better in 2026. To help us improve further, please answer a few questions about your experience with Plesk Obsidian 2025.
    Please take this short survey:

    https://survey.webpros.com/

Question How to refuse all remote connections to mysql from command line?

Mike23

New Pleskian
I allowed all remote connections to mysql in the Plesk UI settings.

Now I'm stuck in the command line (for another reason), and I would like to refuse all remote connections.

How can this be done through the command line ?

Thanks
 
In file /etc/my.cnf set option bind-address to local connections only with:

bind-address = ::ffff:127.0.0.1

and restart mysql service.
 
Back
Top