Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

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.

Connect .net app to mysql database

Discussion in 'Database Discussions' started by hql, Jan 21, 2017.

Tags:
  1. hql

    hql Member

    Joined:
    Jun 6, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Im trying to connect my .net application to the mysql database remotely, ive added the respective IP addresses to allow connections from, ive opened port 3306 in CSF, what do I enter for hostname, am I correct in assuming that the servers IP address should be the hostname, followed by database name, user and password?

    Sorry im a bit new to all of this so am lost

    I keep getting this error: "The underlying provider failed on ConnectionString"
     
    #1 hql, Jan 21, 2017
    Last edited by a moderator: Jan 21, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    Could you confirm the remote IP address was added via the Remote MySQL option in cPanel?

    Thank you.
     
  3. hql

    hql Member

    Joined:
    Jun 6, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Yes they have been, port 3306 has also been in opened up in csf, is there a way to test connectivity other than our app?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Hello,

    You could try connecting to a database on the cPanel server from another remote server or your own local workstation with another application to verify if it works properly. If it works with another application, then the issue is likely related to the individual application you are using.

    Thank you.
     
  5. hql

    hql Member

    Joined:
    Jun 6, 2013
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    What's the best application to use in mac OS X to verify this or windows?
     
  6. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,658
    Likes Received:
    1,425
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page