Jump to content

Recommended Posts

Posted

Good evening all,

I'm trying to set up a remote connection to my domain's database but the connection just hangs.

I have given the connection the IP address of my site and the port 3306, along with user id and password but I get no answer. Any suggestions or pointers to tutorials? I have enabled my computer in cPanel

 

Tnx in advance

 

bruce :) :) java script:emoticon(':wallbash:', 'smid_46')

:wallbash:

Posted

Welcome to the forums Bruce. :)

 

Do you get any errors when you try to connect, or does it just hang? What are you using to connect? Some script or program?

 

To connect to your database from another server (or PC or whatever) you need to enter the IP address of that server in the "Access Hosts" section in the MySQL Account Maintenance, accessible through cPanel. Sounds like you may have already done that.

 

Make sure your database username and password in whatever program or script it is you are trying to run is correct. Keep in mind that your database name will be in the form of cpaneluseraname_dbname and your database username will be in the form of cpanelusername_dbuser - essentially your database name and username are prefixed with your cPanel username. Your password, however, is not.

 

Also be sure that your database user has been added to the database itself.

 

Those are the basics off the top of my head. Double-check all that and let us know where you stand.

Posted

After checking the things Tim has listed, if you still do not see any response from the server, one more thing to check is to make sure port 3306 is open in your firewall. The "I get no answer" makes me think your firewall could be blocking the connection, so whatever you're using to connect hangs because it's waiting for a response that's never going to come.

Posted

Hi,

Thanks for the replies, but I'm still unable to connect. I am using mySQL Administrator to connect, and I can ping my site IP address. I gave the database access through cPanel to my machine, and now I am getting an error that the connection is refused , and the user is my user name , in the correct format, but the user name is followed by

'@pool-168-161-206-28.ny325.east.verizon.net' . I am using a DSL line through verizon, could this be the problem? :)

Posted
Hi,

Thanks for the replies, but I'm still unable to connect. I am using mySQL Administrator to connect, and I can ping my site IP address. I gave the database access through cPanel to my machine, and now I am getting an error that the connection is refused , and the user is my user name , in the correct format, but the user name is followed by

'@pool-168-161-206-28.ny325.east.verizon.net' . I am using a DSL line through verizon, could this be the problem? :)

 

I got it, I had to use that string, I suppose the Verizon connection masks my local IP address ,

 

It works now though, thanks for you attention!

  • 2 months later...
Posted (edited)

I'm having the same issue. Would be grateful if you could tell me what you mean by 'I had to use that string' as I am getting a similar error message. Where did you put the string? (and which part of the string exactly?)

Edited by evaluateit
Posted
I'm having the same issue. Would be grateful if you could tell me what you mean by 'I had to use that string' as I am getting a similar error message. Where did you put the string? (and which part of the string exactly?)

 

 

Not to worry - sorted the problem - just used the '%' in the access hosts.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...