For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > November 2004 > RE: [PHP-DB] Connecting to a remote server?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author RE: [PHP-DB] Connecting to a remote server?
Neal Carmine

2004-11-29, 8:55 pm

Chris,

Same as with localhost, replace localhost with DNS name or IP of the remote
DB server. Make sure port 3306 is open on the DB server and that the box you
are connecting from is an allowed host in the users table of the mysql
database on the remote database.

Neal Carmine
Nine Systems Corporation

-----Original Message-----
From: Chris Payne [mailto:cjp@planetoxygene.com]
Sent: Monday, November 29, 2004 4:09 PM
To: php-db@lists.php.net
Subject: [PHP-DB] Connecting to a remote server?

Hi there everyone,



I have written a program in PHP with MySQL as the DB backend, It works great
but I need to be able to connect to a remote MySQL DB server for an Updates
system I've written, how do I connect to a remote MySQL server with PHP?
I've only ever done it with localhost.


Thanks



Chris


---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.802 / Virus Database: 545 - Release Date: 11/26/2004

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com