How do u

Questions about the MySQL, PostgreSQL, and most other databases, as well as using it with PHP can be asked here.

Moderator: General Moderators

Post Reply
User avatar
Pocketx
Forum Commoner
Posts: 37
Joined: Fri Aug 23, 2002 9:54 pm

How do u

Post by Pocketx »

How do u have something on a database on another host

and then connect to the database on another host?
User avatar
riley
Forum Commoner
Posts: 45
Joined: Thu May 02, 2002 6:31 pm

Post by riley »

mysql_connect("mysql.host.com:3306", "user", "pass");

the database will connect to any host thats active and you have a username and password to allow connection
User avatar
Pocketx
Forum Commoner
Posts: 37
Joined: Fri Aug 23, 2002 9:54 pm

Post by Pocketx »

Thanks!!
Post Reply