Re: php and mysql connect problems
Posted by:
Nick Roper
Date: April 30, 2005 05:50AM
Stefan,
The error suggests that the mysqld process may not be running on the host that you are specifying. Is PHP running on the same server as MySQL - or are you running PHP on one machine and trying to connect to MySQL on another host ? If the script is on the same machine as the mysql server then try defining DB_HOST as 'localhost'
Let me know...
Regards,
Nick
PS - be wary of setting your database credentials (username, password etc.) in your script, as this can leave them exposed to 'bad guys' .
--
Nick Roper
Subject
Written By
Posted
Re: php and mysql connect problems
April 30, 2005 05:50AM
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.