MySQL Forums
Forum List  »  PHP

Help on MySQL 4.1 & PHP 4.3.11
Posted by: Premdeep Banga
Date: June 08, 2005 05:06PM

I have installed both MySQL 4.1 and PHP 4.3.11 with Apache 2.0.54.

The PHP scripts are running but i am not able to connect to the database, i used the following code to test the connection and it always gives me can't connect:


mysql_connect( "localhost", "root", "admin" ) or die("Can't connect");
mysql_query( "USE mysql" ) or die("Can't select mysql database");
echo "Success\n";


my phpinfo(); is running well and good. It shws me that i have MySQL server support, as it is provided in PHP 4.3.11 by default and there is no need for extension, as in the case for PHP 5.

I have my MySQL server & Apache server running with no errors.
What could be the issue.
Anyone, please help me out.

Options: ReplyQuote

Written By
Help on MySQL 4.1 & PHP 4.3.11
June 08, 2005 05:06PM

Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.