• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

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