Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 9 of 9
  1. #1
    Member
    Join Date
    Oct 2003
    Posts
    44

    Default Connecting to MySQL from an external server

    Hello,

    If I am going to add Access Host under the MySQL in cPanel, what should be the hostname to use when the external server or domain will connect to the MySQL db?

  2. #2
    Member
    Join Date
    Feb 2004
    Posts
    204

    Default

    Hi gallot,

    You can add domain name or IP number of the host that you wish to add as the hostname in the Host field.

    Regards,

  3. #3
    Registered User
    Join Date
    Dec 2006
    Posts
    3

    Exclamation I have big error:(

    I added ips like 88.%.%.%, and like 88.229.145.18.
    And tried to connect from external site and program, it didn't work.
    I added ips to Access Hosts list but again, it didn't work.

    What must i do?????

  4. #4
    Member
    Join Date
    May 2005
    Location
    india
    Posts
    41

    Thumbs up Hi

    Hello

    Very simple just add % instead of ipaddress






    Enjoy

    Regards
    Carlos

  5. #5
    Member
    Join Date
    Dec 2006
    Posts
    13

    Default

    Also make sure the user you are using to connect has the appropriate privileges granted for the database you are connecting to. You can create a database user then assign that user privileges using the MySQL portion of cPanel or the GRANT statement as root MySQL user from the MySQL command line client. GRANT syntax is detailed in the MySQL online manuals.

  6. #6
    Registered User
    Join Date
    Dec 2006
    Posts
    3

    Default

    Quote Originally Posted by carlosferns2004 View Post
    Hello

    Very simple just add % instead of ipaddress






    Enjoy

    Regards
    Carlos
    Quote Originally Posted by plexihosting View Post
    Also make sure the user you are using to connect has the appropriate privileges granted for the database you are connecting to. You can create a database user then assign that user privileges using the MySQL portion of cPanel or the GRANT statement as root MySQL user from the MySQL command line client. GRANT syntax is detailed in the MySQL online manuals.

    i did them but again it didn't work

  7. #7
    Registered User
    Join Date
    Dec 2006
    Posts
    3

    Default i solved..

    I looked all settings but there was no wrong setting.
    Then i added the same user to the same db, then it worked.

  8. #8
    cPanel Development cpanelkenneth's Avatar
    Join Date
    Apr 2006
    Posts
    3,788
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    In some recent builds, the access is being granted to the database server, but tnot to any specific databases. Check your the db table in the mysql database. Make certain your user can access the database from your specified host. A query like the following should work:
    Code:
    SELECT User FROM db WHERE Host ='put your host name here';
    In the output look for a match to your user name.

  9. #9
    Member Stefaans's Avatar
    Join Date
    Mar 2002
    Location
    Vancouver, Canada
    Posts
    445

    Default

    Quote Originally Posted by cpanelkenneth View Post
    In some recent builds, the access is being granted to the database server, but not to any specific databases.
    I noticed this, an found I had to reapply user access to each database to allow a new external IP. Are you saying this change is intentional, or that it is a bug?

Similar Threads & Tags
Similar threads

  1. Cpanel frontend no longer connecting to remote MySQL server
    By InfiniteNetwork in forum Database Discussions
    Replies: 4
    Last Post: 11-16-2010, 12:25 AM
  2. Mysql External not connecting
    By nicefrid in forum Database Discussions
    Replies: 2
    Last Post: 10-05-2010, 02:30 PM
  3. Mysql External not connecting
    By nicefrid in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 10-05-2010, 02:30 PM
  4. Replies: 0
    Last Post: 10-26-2009, 09:06 AM
  5. Connecting to MySQL on seperate server
    By namehog in forum cPanel and WHM Discussions
    Replies: 7
    Last Post: 07-02-2004, 08:44 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube