MySQL Forums
Forum List  »  PHP

Re: Unknown MySQL server host 'DB_SERVER' (11004)
Posted by: Rosalie Stratford
Date: June 12, 2009 02:10AM

Thanks so for the response.

The constant DB_SERVER has been defined as "localhost" in a separate config.php file, which has been 'require_once'in the page that references it.

As I'm using virutal hosts with mysql on Apache, wondered if DB_SERVER should be defined as the vhost name as opposed to "localhost". Have tried this and failed.

Can't seem to find information relating to how vhosts affect defining DB_SERVER (if at all) anywhere.

Options: ReplyQuote


Subject
Written By
Posted
Re: Unknown MySQL server host 'DB_SERVER' (11004)
June 12, 2009 02:10AM


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.