Enable Remote MySQL from WHM
- Login to WHM.
- Locate SQL Services section and click on Additional MySQL Access Hosts link.
- At next screen, enter IP address or host(s) that you wish to grant remote MySQL access to and click the Save button. If you want to activate these settings for all cPanel accounts, click on Click Here link at bottom. Now, remote connection has been activated in WHM. Each cPanel account that wants to use remote connection need to activate it as follows.
Enable Remote MySQL from cPanel
- Login to cPanel.
- Locate the Databases section. Under Databases section locate Remote MySQL option and and click on it.
- In the next screen, enter the hostname or IP address that you want to grant remote MySQL access to and click the Save button. If your IP address changes regularly, you can use wildcard by using the % symbol. This will add all IP addresses in that range. For example; if you want to list IP addresses range from 192.168.3.1 to 192.168.3.255, you can add an IP address as 192.168.3.%.
NOTE: Following steps are additional and need to be taken only when you are unable to connect to MySQL server after enabling Remote MySQL from WHM.
- Login to MySQL server (where MySQL server is installed) and edit the my.cnf file using a text editor such as vi. Usually my.cnf file is located at /etc/mysql/my.cnf or at /etc/my.cnf.
# vi /etc/my.cnf
- Once file is opened, locate line that containts skip-networking and make sure that it is commented as follows.
- Now locate the line containing bind-address and comment it out as follows.
# bind-address = 127.0.0.1
- Save and Close the file and Restart the MySQL server.
# /etc/init.d/mysql restart // Debian & Ubuntu Linux
# /etc/init.d/mysqld restart // CentOS & Fedora Linux
- 0 Users Found This Useful
This guide provides instructions for modifying .htaccess to use a custom php.ini throughout your...
1. Log in to cPanel, if you haven’t already done so 2. If you haven’t already done so, create a...
If you do not have a php.ini file in your public_html folder you can create one by following the...
You can create an SPF record from cpanel > Email Authentication for your all domains that are...
Resetting your cPanel password and finding your cPanel username is easy and can be handled...