Strange database and domain prefix behavior
-
For four months my WordPress site has been working super – no issues, smooth installation, special child theme, no problems.
Here’s the site, which looks as it should and has:
http://stephenzezza.comOut of the blue last week, Google starts returning this address when searching for the site:
http://www.stephenzezza.comThat should be fine, since the ‘www’ is a sub-domain and in the past has always resolved to http://example.com. But, in this case the domain with ‘www’ prefixed leads to what seems to the frontpage real site but with no stylesheet.
1. I went to login to the dashboard to fix the prefix issue in Settings, and get the “Database Connection Error” error.
2. I go to my host admin panel to actually ADD http://www.stephenzezza.com as a subdomain (which maybe I could forward to the non-‘www’ address), but the server tells me ‘www’ is already ‘included’ in the domain name, and I can’t add it.
2. I ftp in and backup all the content, then checked out wp-config to see what DB WordPress was looking for, the user, and the password. It’s looking for a DB that’s not there (there’s only one database in the account), so I created it via PhpAdmin giving it all the info wp-config was looking for. I refresh everything and try to login again, and now I’m at the wordpress install screen.
3. I put everything back the way it was. Should I proceed with the former installation process and upload all the backed up content to a fresh install?
4. Also, how is the site at stephenzezza.com functioning if the wp-config file for the site doesn’t just have the wrong password or something, but is looking for a DB that isn’t even there?
I really have tried everything I can think of…is it glaring me in the face and I just can’t see it? Thank you for any feedback…
The topic ‘Strange database and domain prefix behavior’ is closed to new replies.