Re: Need help Wth PHP
| From: | James Yerge | Date: | Mon, 10 Oct 2011 00:45:43 +0000 |
| Subject: | Re: Need help Wth PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-315194@lists.php.net to get a copy of this message | ||
On 10/09/2011 08:41 PM, Rod Lindgren wrote:
> I have a hosting account and am trying to get a friend's website up and
> running. We downloaded his existing site from his current host and uploaded
> it to my host. It is currently under a subdomain, www.egypt.aragren.com
> <http://www.egypt.aragren.com/> . When I go there, I get
> an error message
> that says, "Error establishing a database connection." What causes this and
> how can I fix it?
>
>
>
>
> Sensei Rod Lindgren
>
>
>
> Sent from my Gateway computer
>
>
>
>
>
>
This issue isn't related to PHP but the cause of the error is due to the
scripts' inability to make a connection to the database. The error looks
like it's coming from WordPress, I could be wrong but if that's the case
then you need to update the wp-config.php file to reflect the proper
credentials to log into the database.