The SQL did need updating but I was unable to do this as it’s a complex process in Lightsail involving creating a new instance and moving the whole site across and my website was too big for the WordPress migration tools to handle. I’m wondering if the old version of SQL has just stopped working altogether?
Anyone got any ideas on how to get my site back?
]]>I’m using the Download Codes plugin with the same self-hosted files successfully for many years now. Recently however, attempts to download files are rejected with an error. The code itself works and the download link is displayed (/?lease=...
), however when clicking it users get an error:
This site can’t be reached
The web page at https://www.example.com/?lease=******* might be temporarily down or it may have moved permanently to a new web address.
ERR_INVALID_RESPONSE
After that it redirects again to a page saying:
Error establishing database connection
This happens with all downloads. It is likely not a WP issue as other pages and functions on the site are working fine.
I’ve verified that the files are located where they should be and that sufficient permissions are granted.
I’ve also made sure the database is up and has enough disk space.
The edit screen on the plugin settings also shows the files correctly.
WP version 6.2
Download Codes version 2.5.4
]]>We are having an issue where our session table keeps getting corrupted causing an error message to appear on our website saying “error establishing a database connection.” Do you have an update or a fix for this?
Our site has gone down 6 times in the last 10 days.
]]>I’ve created a DB called wordpress in mariadb with ‘wordpress’@’localhost’ as the user and ‘wordpress’ as the password. The install proceeds ok until the connect to the DB page, then I keep getting “Error establishing a database connection.” I list:
Database name. wordpress
Username. wordpress
password. wordpress
database host. localhost
table prefix wp_
I also tried wordpress@localhost as the user name, but that didn’t help.
I can log onto the maria db as wordpress from the terminal without any problem.
]]>We were experiencing some redirect issues when people typed in danoyes.com so we decided to change the main site URL to simply danoyes.com
I did a database find all and replace.
wp-config:
define(‘DOMAIN_CURRENT_SITE’, ‘danoyes.com’);
define(‘WP_HOME’,’https://danoyes.com’);
define(‘WP_SITEURL’,’https://danoyes.com’);
functions.php:
update_option( ‘siteurl’, ‘https://danoyes.com’ );
update_option( ‘home’, ‘https://danoyes.com’ );
The weird thing is my site works just fine, but I can’t access wp-admin. When I try to access wp-admin it says “error establishing database connection”
I’ve already ran “repair database” with no success.
Thoughts?
]]>From my research it looks like this is a failure of the database server. What is a good way to debug this? What should I be looking for? What are some examples of culprits?
This periodic error happens with a couple of my sites, but for one in particular, the front page will load, but that wp-admin page will show the “Error Establishing Database Connection” error.
]]>Connected to BlueHost and they said they can’t find anything wrong with the connection. However I haven’t changed anything in my WordPress files to make this happen?
Error establishing a database connection
This either means that the username and password information in your wp-config.php file is incorrect or we can’t contact the database server at localhost. This could mean your host’s database server is down.
Are you sure you have the correct username and password?
Are you sure that you have typed the correct hostname?
Are you sure that the database server is running?If you’re unsure what these terms mean you should probably contact your host. If you still need help you can always visit the WordPress Support Forums.
Also every once in a while I do get to the WP dashboard so the password/username thing isn’t it
]]>