Sign up ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

How can I remove the old ip address from my connection script?

Just now my site show:

Error establishing a database connection.

I am using wordpress on (remote sql issues)

share|improve this question

1 Answer 1

You need to edit the wp-config.php file. This contains the constants defined for your connection script.

You will find this file in the root folder of your WordPress installation.

share|improve this answer
That's correct, you need to enter the IP in wp-config instead of localhost as well as make sure your username and password are correct for the MySQL server. I would also make sure that if you need to enable remote myself you have set that for your IP. – Anagio Dec 19 '12 at 15:27

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.