Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 5 of 5
  1. #1
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2010
    Posts
    13

    Default Remote MySQL server + "Add a New IP Address" messes up

    I've set up the remote mysql server - that works without any issues exactly as I want it too. But when I add a new ip address to the system, so a shared hosting client of mine can get a dedicated ip address, and tries to open phpmyadmin in whm, the I'm presented with the following error:


    Error

    SQL query: Edit

    SET CHARACTER SET 'utf8';

    MySQL said:

    #1130 - Host 'new.ip.new.ip' is not allowed to connect to this MySQL server


    Why is this? I were expecting cPanel to automatically take care of this. Also I don't understand why the mysql server thinks I'm accessing it form the newly added ip address instead of the primary ip address set for the cpanel server (which is working fine).

    Any help or good ideas will be very appreciated :-) Thanks!

  2. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2010
    Posts
    13

    Default Re: Remote MySQL server + "Add a New IP Address" messes up

    *BUMP* - any help?

  3. #3
    cPanel Staff cPanelTristan's Avatar
    Join Date
    Oct 2010
    Location
    somewhere over the rainbow
    Posts
    6,305
    cPanel/Enkompass Access Level

    Root Administrator

    Default Re: Remote MySQL server + "Add a New IP Address" messes up

    If you add that dedicated IP in WHM > Additional MySQL Access Hosts area, does it then work?
    cPResources: Support Options | More Support Options | Forums Search | cPanel.net Site Search | Mailing Lists(Alt) | Docs
    -- Tristan, Forums Technical Analyst, cPanel Tech Support

    Submit a ticket | Check an existing ticket

  4. #4
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Oct 2010
    Posts
    13

    Default Re: Remote MySQL server + "Add a New IP Address" messes up

    The issue was caused by network protocol. The new IP is on the same subnet as the remote MySQL IP. The main ip of the cPanel server is on a different subnet than the mysql server and the new ip. As such, the new IP takes precedence as the outbound route to connect to the MySQL server.

    It appears that WHM :: Main >> SQL Services >> Additional MySQL Access Hosts added extra users for all the database users, just not root.

    eg. A user as seen in phpmyadmin

    Apartart xxx.xxx.1.1 Yes USAGE No Edit Privileges Edit Privileges Export Export
    Apartart xxx.xxx.2.1 Yes USAGE No Edit Privileges Edit Privileges Export Export

    vs root

    root 127.0.0.1 No ALL PRIVILEGES Yes Edit Privileges Edit Privileges Export Export
    root xxx.xxx.1.1 Yes ALL PRIVILEGES Yes Edit Privileges Edit Privileges Export Export
    root localhost No ALL PRIVILEGES Yes Edit Privileges Edit Privileges Export Export

    I added root@xxx.xxx.2.1 to the mysql userlist and phpmyadmin worked after that.


    After that, it worked. So because the new ip was on the same subnet as the mysql server, and cPanel's main ip is not, the new ip was considered the "main" ip by the mysql server, which caused the problem as this didn't have access to it.

  5. #5
    Member
    Join Date
    Sep 2011
    Posts
    17
    cPanel/Enkompass Access Level

    Website Owner

    Default Re: Remote MySQL server + "Add a New IP Address" messes up

    Hello People, I also have a problem with "Additional MySQL Access Hosts" feature.

    I got to CONNECT to MySql database ( $db = mysql_connect(this-host,user,passw) which runs successfully on remote serve)

    but... it can´t SELECT a database into ( mysql_select_db(database-name,$db) fails )

    I tried user = database-name owner and also user = root , but both failed.

    When executing on "localhost" mode mysql_select_db works fine

    what would be happening here? , I searched cPanel for some "additional database access hosts" or something else, but nothing found. Permissions appears given for entire mysql connections and not for specific databases. I have permission for remote mysql , but not for selected database.

Similar Threads & Tags
Similar threads

  1. Add "delete list" button in WHM on "Reset a Mailman Password" page
    By cPanelMary in forum Feature Requests for cPanel/WHM
    Replies: 0
    Last Post: 01-08-2011, 12:19 AM
  2. Add new IP address - skipping: "already added"
    By dmzus in forum New User Questions
    Replies: 3
    Last Post: 03-14-2010, 07:54 PM
  3. /webmail asks users for "username" not "email address"... why?
    By ryno267 in forum cPanel and WHM Discussions
    Replies: 9
    Last Post: 08-07-2006, 09:22 AM
  4. CPanel "default address" not accepting email for "main account"
    By nsdesign in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 10-08-2005, 05:48 AM
  5. Remote mysql and "eximstats" and "horde" database
    By torwill in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 04-17-2004, 12:30 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube