Connecting to MySQL
| From: | Lester June Cabrera | Date: | Fri, 22 Jun 2001 08:42:43 +0000 |
| Subject: | Connecting to MySQL | ||
| Groups: | php.db | ||
| Request: | Send a blank email to php-db+get-9724@lists.php.net to get a copy of this message | ||
How can I connect to our MySQL server remotely. Ordinarily, we upload the same PHP application the same machine that runs MySQL too. So, I just access it using "localhost" in the mysql_connect( ) function, like:
mysql_connect($servername,$dbusername,$dbpassword);
where $servername = "localhost"
What if I want to access the MySQL server from my Win test machine that runs Apache?
Thanks,
Lester
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
For additional commands, e-mail: php-db-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net