The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Remote Database Access Hosts

Discussion in 'Database Discussions' started by OooLong, Apr 17, 2014.

  1. OooLong

    OooLong Well-Known Member

    Joined:
    Mar 16, 2011
    Messages:
    63
    Likes Received:
    0
    Trophy Points:
    6
    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>
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,682
    Likes Received:
    654
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    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.
     
Loading...

Share This Page