Re: MySQL Connect Problem

From: Date: Wed, 16 May 2001 03:15:44 +0000
Subject: Re: MySQL Connect Problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-9339@lists.php.net to get a copy of this message
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 = @mysql_connect("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@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

« previous php.db (#9339) next »