How can I allow access from IP address to MySQL database?

To do this, the connecting host will preferably need a static IP address otherwise you'll need to re-do this guide each time their dynamic IP address from their ISP changes.

 

You can allow access from cPanel for MySQL itself. We'll also need to set up an allow rule through the firewall which is covered here.

  1. Login to your cPanel.
  2. Go to Databases » Remote MySQL.
  3. Enter the IP address of the computer that will be making the remote connection.
  4. Click the Add Host button.
  5. Now we need to allow the person's IP to be able to connect to port 3306 which is closed by default. The best way to do this is with a firewall rule specific to their IP and port 3306 and how to do this for CSF is detailed here.
  • 0 Пользователи нашли это полезным
Помог ли вам данный ответ?

Связанные статьи

I'm unsure what to put as IP for the resolver configuration in WHM

Please leave default IPs in resolver configuration to give your VPS the best DNS performance...

Is there a way to limit bandwidth for a sub domain or cPanel account for one of our domains?

CPanel allows you to set the bandwidth limit for each account, once you reach the bandwidth...

Powered by WHMCompleteSolution