WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm very confused. What i did was change my hostfiles so i can access my website on an alternative website and checked it in case i had hardcoded values (i did and they were corrected). I had to use the defines below to get the check to work


Anyways, after i checked everything i did some select queries in my db (confirmed by looking at history). When i undid the define and change my host files back so my original url isnt poiting to home i tried visiting my wp site and i got "Error establishing a database connection". copied pasted the login data into mysql -u name -p (pass) and i was able to log in... i dont know why wp cant login. I tried reseting my server, mysql server and php-fastcgi. All didnt fix it :(. How do i fix this?

share|improve this question
up vote 0 down vote accepted

Nevermind, i actually accidentally didnt put back the url in nginx config file so i only had the new url. I wonder why i got a DB error instead of my generic "Nothing to see here" page

share|improve this answer

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.