could not connect mysql5 from php5
Posted by:
zxcse2010
Date: December 30, 2004 01:47AM
Hi,
Developers i am a software analyst from bangladesh,i faced a new problem of connecting.I could not connect mysql 5/mysql 4.01 alpha from php 5 version over apache2 web server on windows 2000 professional sp-4.
I wrote following code for connecting :
code is:
<?php
echo ('<p> This is a test! </p>');
$dbcnx = @mysql_connect('localhost', 'root', 'root');
if (!$dbcnx) {
echo( '<p>Unable to connect to the ' .
'database server at this time.</p>' );
}
// Select the jokes database
if (! @mysql_select_db('test') ) {
die( '<p>Unable to locate the test ' .
'database at this time.</p>' );
}
?>
---------------- i think above code is correct but connection was not established above source.please healp me as soon as possible.
Subject
Written By
Posted
November 13, 2004 08:44AM
November 13, 2004 01:38PM
November 15, 2004 08:40AM
December 10, 2004 02:00AM
December 12, 2004 08:08AM
December 12, 2004 03:58PM
could not connect mysql5 from php5
December 30, 2004 01:47AM
December 31, 2004 08:49AM
December 30, 2004 01:51AM
February 27, 2006 10:05PM
February 04, 2006 06:12AM
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.