Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
connecting remote host db
Old 10-27-2008, 09:15 PM connecting remote host db
Skilled Talker

Posts: 67
Trades: 0
i'm new to mysql,i wonder if you people advice me about how to connect remote database with mysql_connect('remotehost','uname','pwd');

remotehost= in many cases we include 'locahost',

but,what we need to include when we connect remote host database

it might be IP like either e.g '127.34.25,26' or 'mysql.somesite.com'

2. IF connecting via remote host which username/password need to be added
is it mysql username/password or any website cpanel username/password

please respond to my queries.i'm new to mysql/php

your feedback important to me
jdial is offline
Reply With Quote
View Public Profile Visit jdial's homepage!
 
 
Register now for full access!
Old 10-27-2008, 09:20 PM Re: connecting remote host db
NullPointer's Avatar
Will Code for Food

Posts: 2,815
Name: Matt
Location: Irvine, CA
Trades: 0
So long as the server is using the default port just replacing localhost with the ip address of the server the database is on should work just fine. Sometimes however the server only allows remote connections for whitelisted ips.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Reply     « Reply to connecting remote host db
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.22448 seconds with 12 queries