php-db | 2001062
Date: 06/22/01
- Next message: Xsarus Internetdiensten: "Re: [PHP-DB] Password Protect page"
- Previous message: Jan de Koster: "Re: [PHP-DB] Password Protect page"
- In reply to: Lester June Cabrera: "[PHP-DB] Connecting to MySQL"
- Next in thread: Christopher Ostmo: "Re: [PHP-DB] passing db persistent connections through different pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
At 22.06.2001 09:42, you wrote:
>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?
>
change the servername variable to the hostname of your database server and make
sure that you are allowed to connect (either in mysql.db or mysql.user).
btw. it's always a good idea to use a different topic than a subject just
discussed..
--
Andreas D Landmark / noXtension
Real Time, adj.:
Here and now, as opposed to fake time, which only occurs there
and then.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-db-unsubscribe <email protected>
For additional commands, e-mail: php-db-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Xsarus Internetdiensten: "Re: [PHP-DB] Password Protect page"
- Previous message: Jan de Koster: "Re: [PHP-DB] Password Protect page"
- In reply to: Lester June Cabrera: "[PHP-DB] Connecting to MySQL"
- Next in thread: Christopher Ostmo: "Re: [PHP-DB] passing db persistent connections through different pages"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

