RE: Connecting to a remote server?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxxxx] 
Sent: Monday, November 29, 2004 4:09 PM
To: php-db@xxxxxxxxxxxxx
Subject:  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
 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux