How to Fix the Security Advisor MySQL Alert Updated on November 19, 2021 by InMotion Hosting Contributor 1 Minutes, 36 Seconds to Read The WHM Security Advisor scans for possible changes to harden your VPS security. Below we cover how to clear the following error for VPS users not using remote MySQL: The MySQL service is configured to listen on all interfaces: (bind-address=*) Configure bind-address=127.0.0.1 in /etc/my.cnf, or close port 3306 in server’s firewall Security Advisor Scan To check for the MySQL service warning, first Login WHM as root. Select Security Advisor from the menu to start the scan. Check for the MySQL service alert. If the alert above does display, you can fix this using one, or both, of the following methods: Edit Config File Close Port 3306 Note: This may prevent your VPS from using remote MySQL. Edit Config File SSH into your server as root. Edit the /etc/my.cnf file and add bind-address=127.0.0.1 to the file. To do so using nano editor: Type nano /etc/my.cnf and press Enter ⤶ to open the file. Scroll to the bottom of the file using the Down arrow and add bind-address=127.0.0.1 . Press Control and x for the save prompt before exiting. Press y , then Enter ⤶ to save the file. Afterwards, rescan with cPanel Security Advisor to ensure the error doesn’t recur. Close Port 3306 using CSF Another option is to close port 3306 using your firewall. Advanced Policy Firewall (APF) users can remove the port from the APF configuration file using SSH as root. ConfigServer & Firewall (CSF) users can do this within WHM as root using the steps below. Select ConfigServer Security & Firewall from the WHM menu. Under csf – ConfigServer Firewall select Firewall Configuration. Under IPv4 Port Settings and Allow incoming TCP ports, remove “3306” from the text field. Select Change at the bottom, then Restart csf+lfd. Afterwards, rescan with cPanel Security Advisor to ensure the error doesn’t recur. Congratulations. You’ve further enhanced your VPS security. APF users can upgrade to CSF using our installation guide or via verified email request. Share this Article InMotion Hosting Contributor Content Writer InMotion Hosting contributors are highly knowledgeable individuals who create relevant content on new trends and troubleshooting techniques to help you achieve your online goals! More Articles by InMotion Hosting Related Articles Resetting the cPanel Password in WHM How to Change your root Password in WHM How to Stop and Disable Firewalld Content Security Policy (CSP) Headers – Complete Reference Guide Why You Need To Keep Your Website’s PHP Version Up-to-Date Learning About Mod_security and Disabling Mod_security Close Open Ports for PCI Compliance How to Pass PCI Compliance Scans DDoS Protection Using Corero How to Open a Port in Firewalld