We're a community of 1.1M IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,080,608 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Remote database connections in mysql and php is it possible?

Hi all,
i have 2 shared host server(www.nextsoftech.com(ip:64.202.123.78) and www.simpletelecomltd.co.uk (ip:208.91.198.107)). i want to access nextsoftech.com 's database from simpletelecomltd.co.uk 's script.
that's means i stor all script simpletelecomltd.co.uk this server. Would any one help me how can configure
and what is the connect code in php?

thanks you
sumain

2
Contributors
1
Reply
59 Minutes
Discussion Span
11 Months Ago
Last Updated
2
Views
sumain
Newbie Poster
2 posts since Apr 2009
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

In nextsoftech's cPanel you'll need to allow remote MySQL access for the IP address of simpletelecomltd. If you are allowed to do this, then you can simply use mysql_connect (or mysqli, pdo, etc) and pass nextsoftech's IP as the host parameter.

pritaeas
Posting Prodigy
Moderator
9,533 posts since Jul 2006
Reputation Points: 1,194
Solved Threads: 1,494
Skill Endorsements: 98

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page generated in 0.2801 seconds using 2.66MB