php-db | 2001051
Date: 05/15/01
- Next message: Jeff Oien: "RE: [PHP-DB] MySQL Connect Problem"
- Previous message: Anil Kumar: "[PHP-DB] Apache+PHP+MSSQL+FreeTDS"
- In reply to: Jeff Oien: "[PHP-DB] MySQL Connect Problem"
- Next in thread: Jeff Oien: "RE: [PHP-DB] MySQL Connect Problem"
- Reply: Jeff Oien: "RE: [PHP-DB] MySQL Connect Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Is the MySQL and Apache running on the same machine?
Jeff Oien wrote:
> I have MySQL on a new Win2000 install and can't connect to it using PHP.
> I am able to connect using the command line. I'm not sure what the next
> step is to troubleshoot. I've checked the username and password in the
> .ini file using WinMySQLAdmin. I'm using Apache which is working fine
> otherwise. Typical code:
>
> <?
> $connection = <email protected>("localhost", "jeff", "*****")
> or die("Couldn't connect.");
> if ($connection) {
> $msg = "success!";
> }
> ?>
>
> Thanks.
> Jeff Oien
>
> --
> 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>
-- 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: Jeff Oien: "RE: [PHP-DB] MySQL Connect Problem"
- Previous message: Anil Kumar: "[PHP-DB] Apache+PHP+MSSQL+FreeTDS"
- In reply to: Jeff Oien: "[PHP-DB] MySQL Connect Problem"
- Next in thread: Jeff Oien: "RE: [PHP-DB] MySQL Connect Problem"
- Reply: Jeff Oien: "RE: [PHP-DB] MySQL Connect Problem"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

