Remote Database Access Hosts

OooLong

Well-Known Member
Mar 16, 2011
105
1
68
cPanel Access Level
Website Owner
It say that: You can allow external web servers to access your MySQL databases by adding their domain name to the list of hosts that are able to access databases on your web site.

I'm using .htaccess authentication through mysql database, and will this work with by adding IP instead of domain name?

my .htaccess:
AuthGroupFile /dev/null
AuthName RESTRICTED
AuthType Basic

AuthMySQLHost 211.53.44.113
AuthMySQLDB Securem
AuthMySQLUser admin14
AuthMySQLPassword jSnrfVjs3n
AuthMySQLUserTable Securef
AuthMySQLNameField Username
AuthMySQLPasswordField Password
AuthMySQLPwEncryption crypt
#AuthMySQLCryptedPasswords Off
#AuthMySQLScrambledPasswords Off
#AuthMySQLKeepAlive on


<Limit GET POST>
require valid-user
</Limit>
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Yes, you can add IP addresses instead of domain names when using the "Remote MySQL" option in cPanel or "Additional MySQL Access Hosts" in WHM.

Thank you.