How to seperate the web server and MySQL database server?
| From: | Qunfeng Dong | Date: | Sat, 04 Jan 2003 18:54:26 +0000 |
| Subject: | How to seperate the web server and MySQL database server? | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-24549@lists.php.net to get a copy of this message | ||
Hi, I am sure this is a silly/easy question but I
really hope someone can point me some documents.
We are currently running PHP and MySQL at the same
machine. Can I run PHP in one machine and MySQL server
in another machine? If so, how can I make the database
connection? Currently, in all my PHP scripts, they
connect to the database through
@ $db = mysql_pconnect("localhost", "UNAME",
"PASSWD");
can I just replace localhost with the host name of
MySQL machine? What else should I worry about?
Thanks!
Qunfeng
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com