1 site works, 1 db failure, same server & WP versions
-
Hello,
My personal web site, https://benpaley.com/, is down with “Error reconnecting to database” — I’ve enabled debugging in
wp-config.php
but it’s still not very informative. I get the same error from/wp-admin
I can log in to MariaDB perfectly well on the command line using credentials copied from
wp-config.php
, so there’s nothing wrong there.Another site on the same server, https://starcreativeheritage.org/, is working perfectly, which also suppports the notion that it isn’t the server per se that’s the problem.
Both sites are at WordPress version 6.5.3.
Both sites connect usinglocalhost
.As for the server:
MariaDB saysServer version: 10.5.23-MariaDB-0+deb11u1 Debian 11
PHP version is 8.3I tried disabling plugins using wp cli, but I got the same database error.
I renamed all the plugin folders, but I still got the same error.
I defined WP_ALLOW_REPAIR as true inwp-config.php
and requestedwp-admin/maint/repair.php
in a browser, but I got the same error.
I changed DB_HOST to127.0.0.1
but it didn’t help.
I was getting “Deprecated” warnings concerningwp-content/object-cache.php
so I renamed that and commented out lines relating to WP_CACHE and WPCACHEHOME inwp-config.php
, but of course I’m still getting the same error.I have made some changes to the site recently — some time last week I spent a bit of time playing with various sorts of caching — but when I stopped playing, the site was working, and I’ve definitely looked at it and seen it working since, so I don’t know whether or not the caching changes I made might be involved.
I am bewildered. I would really appreciate any ideas on new avenues to explore. I feel like there must be some sort of plugin issue, since the other site is working fine, and what else would the difference be? Then again, renaming all the plugin folders didn’t solve the issue, so maybe it isn’t anything to do with plugins.
Thanks,
BenThe page I need help with: [log in to see the link]
- The topic ‘1 site works, 1 db failure, same server & WP versions’ is closed to new replies.