i tried to work around. i did already installed mysql administrator and mysql query browser after i replaced it with new download. likewise is successfully opened the database viewing its contents using mysql administrator and query browser.
moreso previously i already created a database using mysql in redhat 9. the mysql rpm files i installed are client, devel, shared and server all mysql-4.1.14.0-.i386. i use the /etc/init.d/mysql start| at root because it won't kick if not in root it posts an error.
with regards to php and apache i think its okay, because when i make the <?php phpinfo(); ?> php page which i placed in the document root , info on php and related configuration including apache and mysql is present in the browser.
i tried some database tutorial using text editor same problem occured when connecting to mysql. the browser timed out posting " "The operation timed out when attempting to contact www.localhost.com. " however when i use the terminal to check the mysql database, i saw the table created by php present in the database.
the codes i used are:
<?
$user="root";
$password="password";
$database="bedrock";
mysql_connect(localhost,$user,$password);
@mysql_select_db($database) or die( "Unable to select database");
$query="CREATE TABLE contacts1 (id int(6) NOT NULL auto_increment,first varchar(15) NOT NULL,last varchar(15) NOT NULL,phone varchar(20) NOT NULL,mobile varchar(20) NOT NULL,fax varchar(20) NOT NULL,email varchar(30) NOT NULL,web varchar(30) NOT NULL,PRIMARY KEY (id),UNIQUE id (id),KEY id_2 (id))";
mysql_query($query);
$query = "INSERT INTO contacts VALUES ('','John','Smith','01234 567890','00112 334455','01234 567891','johnsmith@gowansnet.com','http://www.gowansnet.com')";
mysql_query($query);
mysql_close();
?>
why is it that the browser is looking for www.localhost.com not localhost?
thanks for any help.