MySQL Forums
Forum List  »  PHP

Re: Problem Connection between PHP and MYSQL
Posted by: Eko Trisnanto
Date: January 19, 2006 11:31PM

The eror message in my browser said:

Warning: mysql_connect(): Can't connect to MySQL server on 'localhost' (10061) in C:\apache\apache2\htdocs\db.php on line 4

Warning: mysql_select_db(): Can't connect to MySQL server on 'localhost' (10061) in C:\apache\apache2\htdocs\db.php on line 5

Warning: mysql_select_db(): A link to the server could not be established in C:\apache\apache2\htdocs\db.php on line 5


In my home I have set up the server and MYSQL too, but I edit the dh.php and change the variable $user, and $pass with "", and it is ok. But it means I can't connect MYSQL server with a secure connection, because it means it was connected with "anonymous" connection.

Can u give me advise? thanks a lot.

Options: ReplyQuote


Subject
Written By
Posted
Re: Problem Connection between PHP and MYSQL
January 19, 2006 11:31PM


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.