[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.


Closed Thread
 
LinkBack Thread Tools
Old 10-24-2005, 03:22 PM   #1 (permalink)
NamePros Regular
 
buddybuddha's Avatar
 
Join Date: May 2005
Location: PA
Posts: 212
74.00 NP$ (Donate)

buddybuddha is an unknown quantity at this point


External MySQL db

Is there any way to access a mysql database belonging to website A from website B if I know the user/pass/etc?
buddybuddha is offline  
Old 10-24-2005, 03:46 PM   #2 (permalink)
Senior Member
 
Peter's Avatar
 
Join Date: Nov 2003
Location: Scotland
Posts: 4,900
0.60 NP$ (Donate)

Peter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond reputePeter has a reputation beyond repute

Child Abuse Save The Children Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
if they are on the same server YES if not it depends on how mysql is configured on site a. Site a's database must either have site b in the allowed hosts list or site a's database must allow external connections.

If the database does meet these criteria you simply use the IP number for the host instead of using localhost (unless they are actually on the same machine then you can still use localhost).
Peter is offline  
Old 10-24-2005, 05:14 PM   #3 (permalink)
Domains my Dominion
 
sdsinc's Avatar
 
Join Date: Aug 2005
Location: Web 1.0
Posts: 6,285
1,095.94 NP$ (Donate)

sdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond reputesdsinc has a reputation beyond repute

Third World Education Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Find Marrow Donors! Animal Rescue Animal Cruelty AIDS/HIV Animal Rescue Wildlife Breast Cancer
That's it.
Instead of localhost connect to the server using IP address or fully-qualified host name. The user name you will be using should be set on the remote system to allow connections from any host or at least a particular IP if you have a static address.
__________________
Buy now - MassDeveloper.com $500
sdsinc is offline  
Old 10-26-2005, 05:18 PM   #4 (permalink)
Account Suspended
 
a1whs.com's Avatar
 
Join Date: Oct 2005
Location: Mars
Posts: 360
99.15 NP$ (Donate)

a1whs.com has a spectacular aura abouta1whs.com has a spectacular aura about


I think it is very interesting question , and as stated above if it works for u than , people can get cheap hosting from hosters which do not provide too many sql datbases and use other companies sql server or ur home pc to get all the sql u ever need. So did any of the above work for u ?
a1whs.com is offline  
Old 10-26-2005, 07:47 PM   #5 (permalink)
NamePros Regular
 
Troubled1's Avatar
 
Join Date: Oct 2005
Location: Texas
Posts: 306
224.20 NP$ (Donate)

Troubled1 is on a distinguished road


Yes it works a1whs. I used to have an online radio station which I fully automated to run from a website. The website I hosted at a regular hosting company while the broadcast server and mysql databases ran on a computer at my house. It works fine as long as you configure it as stated earlier. The safest way is to put your host in the mysql's allowed host list.
Troubled1 is offline  
Closed Thread


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

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
HOWTO: Install the Apache Web Server, Perl, PHP, and MySQL on Windows deadserious Webmaster Tutorials 96 05-27-2007 01:24 PM
MySQL Tips shahid_146 Webmaster Tutorials 4 10-18-2005 12:53 PM
Tutorial: How to Install Apache2 MySQL and PHP on Windows deadserious Webmaster Tutorials 35 09-21-2005 09:46 PM
HOW TO: Use shell to control MySQL. abdulmueid Webmaster Tutorials 16 08-27-2005 08:17 AM
Tutorial: Getting Started With MySQL (The Basics) deadserious Webmaster Tutorials 3 04-18-2004 01:17 PM

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 07:42 AM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85