View unanswered posts | View active topics It is currently Sat Aug 13, 2022 8:56 pm



Reply to topic  [ 4 posts ] 
 Remote Connect MySql 
Author Message
Junior Member

Joined: Tue Feb 10, 2004 12:55 pm
Posts: 4
Post 
Hello,
I need alil help.. I'm trying to figure out how i can connect to a different mysql server i'm not sure how the address should be typed.

$dbc = mysql_connect ("localhost", "username ", "password") or die ('I cannot connect to the database because: ' . mysql_error());
mysql_select_db ("databasename");

i'm trying to synchronize all my databases into 1 central database. but i'm not sure on how to type the address domain.mysql.com or mysql.domain.com neither of them work for me

Thank U. :ph34r:


Wed Mar 10, 2004 7:42 pm
Report this post
Profile
Junior Member

Joined: Wed Oct 01, 2003 1:45 pm
Posts: 3
Post 
And the server has to be set up to allow connections from outside, whether from everywhere, from your machine, or from a block of IPs. Many are not or you have to request it.


Thu Mar 11, 2004 5:19 pm
Report this post
Profile
Junior Member

Joined: Tue Feb 10, 2004 12:55 pm
Posts: 4
Post 
Well I have my own dedicated server so i know i allow outside connections to the mysql server.

I'm just trying to figure what address to type in mysql_connection


Fri Mar 12, 2004 3:48 pm
Report this post
Profile
Junior Member

Joined: Tue Feb 10, 2004 12:55 pm
Posts: 4
Post 
Figured out how to connect to a mysql database remotely.

Quite tricky..


Sat Mar 20, 2004 1:15 pm
Report this post
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 4 posts ] 

Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
© Copyright 2003-2008 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.