Re: Does DB only work with a localhost database?
| From: | Stefan Neufeind | Date: | Thu, 03 Jun 2004 13:46:06 +0000 |
| Subject: | Re: Does DB only work with a localhost database? | ||
| References: | 1 2 3 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-12860@lists.php.net to get a copy of this message | ||
On Thu, 3 Jun 2004 at 15:42:21, Pete wrote:
> But I can not connect to the database. No matter what I try. On my local
> machine it works.
> I don't know what to do. When can I get support?
> I already asked in many forums but nobody knows what could be the problem..
> Our homepage is already down for the last 3 days. Slowly I am getting
> scared...
> Because it took a long to adapt everything to PEAR.
> It works perfectly on local machine. I can not even upload anything old to
> the webspace, so the customers don't notice.
> I know that is kind of stupid.
Hmm, did you check if the database-server really listens to the connection-
requests? It might be the case that the database-server is only locally bound,
that there are access-rights missing for your remote request or that there are
certain portblocking/firewall-rules preventing a network-connection. Did you
try connecting to the database using the native functions php provides (e.g..
mysql_connect() or whatever database you have)?
Stefan