UK WEB HOSTING FORUM FOR DISCUSSION ON WEB HOSTING SERVICE AND SUPPORT
LINUX HOSTING WINDOWS HOSTING PACKAGES SHOPPING CART OSCOMMERCE ZEN CART AGORA
ECOMMERCE HOSTING ASP MSSQL FRONTPAGE HOSTING PHP MYSQL HOSTING DISCUSSION FORUM
CPANEL RESELLER HOSTING DEDICATED SERVER VPS HOSTING PLESK VIRTUOZZO
Quick Search
Your forum announcement here!

  eUKhost's Official Web Hosting Forum > Web Hosting and Domains > MySQL Hosting

Reply
 
Thread Tools Display Modes
  #1 (permalink)  
Old 23-11-2008, 10:31
new member
 
Join Date: Nov 2008
Location: France
Posts: 5
Default Connecting to remote database

Hello,

I've put a site which needs to connect to a remote database. I have all the credentials, the ip addr, and the port number. I'm using PEAR:B. From my local server (ubuntu, php 5.2.4, mysql 5.0.5) I have no problem connecting to the base. From the live site, however, it doesn't fly.

I can ping the database host's ip from my local setup but if I go to the cpanel's network tools and type in the same ip I get an "invalid zone" result.

Any ideas on that?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 23-11-2008, 13:12
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 5,641
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Hi Henri,

You will need to add the IP of your database host in allowed sql hosts from your cpanel control panel. You can locate this option from Databases >> Remote MySQL section of your cpanel control panel. Our server won't allow any remote database connection until and unless you allow the IP of remote database server from your cpanel control panel.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 23-11-2008, 15:12
new member
 
Join Date: Nov 2008
Location: France
Posts: 5
Default

Thanks

I went to remote database and added the ip to the access keys. Still, it fails to connect. Even if I add the port. He's part of what it spits out:

DB_Error Object
(
[error_message_prefix] =>
[mode] => 1
[level] => 1024
[code] => -24
[message] => DB Error: connect failed
[userinfo] => [nativecode=mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'xx.xxx.xx.xx' (4)] ** mysql://mysql://dbuser:dbpass@iport/dbname
[backtrace] => Array
(
[0] => Array
(
[file] => /home/cfpnfr/public_html/assets/php/DB.php
[line] => 749
[function] => PEAR_Error
[class] => PEAR_Error
[type] => ->
[args] => Array
(
[0] => DB Error: connect failed
[1] => -24
[2] => 1
[3] => 1024
[4] => [nativecode=mysql_connect() [function.mysql-connect]: Can't connect to MySQL server on 'xx.xxx.xx.xx' (4)]
)

)
...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 23-11-2008, 16:43
new member
 
Join Date: Nov 2008
Location: France
Posts: 5
Default

The site his cfpn.fr. I have my own site at henribaeyens.com. Both hosted by eukhost. I have a subdomain (clients.henribaeyens.com, the access of which is protected) where I have uploaded the cfpn site preview for my client. Well, even from there, the connection to the remote database occurs flawlessly WITHOUT my having to change anything in databases | remote mysql

So what am I missing?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 23-11-2008, 21:30
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 5,641
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Hi Henri,

Please initiate a livechat session from eUKhost Helpdesk :: Shared Reseller VPS Dedicated Server Hosting Support and communicate with one of our technical support staff to get this sorted. We need to check the logs on server simultaneously when you attempt to connect to the remote mysql database, this is only possible when you contact us on livechat and allow us to check logs at the same time.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old 24-11-2008, 11:33
new member
 
Join Date: Nov 2008
Location: France
Posts: 5
Default

well, I've sent a request.

would it be possible to do that via skype?

Henri
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #7 (permalink)  
Old 24-11-2008, 12:04
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 5,641
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by henri.bae View Post
well, I've sent a request.

would it be possible to do that via skype?

Henri
Hi Henri,

Our livechat is similar to Skype and you will like it once you try our livechat support.

You can directly start a chat from our homepage. Our technical team hasn't got Skype or any other messenger on their computers and they can communicate with customers on phone, livechat or helpdesk only.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #8 (permalink)  
Old 24-11-2008, 12:12
new member
 
Join Date: Nov 2008
Location: France
Posts: 5
Default

well, the problem seems to be solved now: the connection succeeds.

I had no clue whence to access your livechat feature until I noticed that the home page banner was a link to it. That'll be for next time.


Thanks for the quick resolution of that matter.

Regards
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #9 (permalink)  
Old 24-11-2008, 12:36
eUKhost.com's Avatar
Chief Marketing Officer
 
Join Date: Sep 2005
Posts: 5,641
Send a message via AIM to eUKhost.com Send a message via MSN to eUKhost.com Send a message via Skype™ to eUKhost.com
Default

Quote:
Originally Posted by henri.bae View Post
well, the problem seems to be solved now: the connection succeeds.

I had no clue whence to access your livechat feature until I noticed that the home page banner was a link to it. That'll be for next time.


Thanks for the quick resolution of that matter.

Regards
Please feel free to contact our livechat support staff directly if you need quick resolution for any technical problem. You are most welcome to post your problems here if you can wait for couple of hours for our response.
__________________
UK Web Hosting || Business Hosting || eUKhost Knowledgebase
Toll Free : 0808 262 0255 || MSN : mark @ eukhost.com || AIM : eukmark
A bunch of Sheep led by a Lion is better than a bunch of Lions led by a Sheep.
__________________________________________________

Great Opportunity :: Join our Affiliate Program for FREE and earn 20% commission on each referral.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #10 (permalink)  
Old 12-12-2008, 11:53
new member
 
Join Date: Dec 2008
Posts: 8
Default

try this..

Myconnection.ConnectionString = "Network Library=DBMSSOCN;" & _
"Data Source=xxx.xxx.xxx.xxx,1433;" & _
"Initial Catalog=myDatabaseName;" & _
"User ID=myUsername;" & _
"Pas sword=myPassword"
Where:
- "Network Library=DBMSSOCN" tells SqlConnection to use TCP/IP
- xxx.xxx.xxx.xxx is an IP address.
- 1433 is the default port number for SQL Server.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #11 (permalink)  
Old 23-01-2010, 12:08
new member
 
Join Date: Jan 2010
Posts: 7
Default

you guys rock, thanks for the great help
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off



All times are GMT. The time now is 14:51.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
UK Web Hosting by eUKHosting 3.1.0
Copyright © 2001-2010, eUKhost LTD. All rights reserved.

 
 
UK VPS Hosting
VPS Hosting plans

Dedicated Server Hosting
Dedicated Server plans

VoIP Dedicated Servers
Asterisk, Trixbox Dedicated Servers

Business Web Hosting
100% uptime Hosting

UK Cpanel Hosting
cPanel Shared Hosting

Domain Hosting
Cheap Domains & Hosting Plans

UK Reseller Hosting
Reseller Web Hosting

Windows Hosting
Windows Shared Hosting

Windows VPS

Windows VPS Hosting

Semi Dedicated Servers
Semi-Dedicated Hosting

Dedicated Server Mirroring
Dedicated Server Mirroring

Webhosting Knowledgebase
Frequently asked Questions

Web Hosting Blog
eUKhost Blog

Web Hosting Support
Support Helpdesk

UK Data Center
eUKhost Datacenter

Web Hosting Forum
eUKhost Forum

Support Tutorials
Online Flash Tutorials

Offsite Back-up Plans
Remote Backup Service

ColdFusion Hosting
ColdFusion Web Hosting


 
Reseller Web Hosting UK
 
knowledgebase articles
eUKhost.com Services

Pre-Sales Questions
Pre-sales FAQ's

Domain Names
Domain registration FAQ's

cPanel Hosting
cPanel Hosting FAQ's

Windows Web Hosting
Plesk Control Panel

Reseller Hosting
Reseller Hosting FAQ's

VPS Hosting
Virtual Private Server

Semi-Dedicated Servers
Semi-Dedicated FAQ's

Dedicated Servers
Dedicated Server Hosting

Joomla Hosting
Joomla Web Hosting

Mambo Hosting
Mambo Web Hosting

Magento Hosting
Magento Web Hosting

Wordpress Hosting
Wordpress Web Hosting


popular blog categories

UK Web Hosting
UK Hosting articles

Dedicated Server Hosting
Dedicated Server guidelines

VPS Hosting
VPS hosting articles

cPanel Hosting
cPanel Hosting articles

Linux Operating System
Linux Operating techniques

Windows Web Hosting
Windows plesk articles