This tutorial covers four ways you can troubleshoot and fix the WordPress Error: "Error Establishing a Database Connection". I hope you find it helpful. NOTE: I make an offer to do repairs on the video. I am not able to link to that service at this time. Tutorial Notes - Code: define('WP_ALLOW_REPAIR', true); Repair URL: www.YOURWEBSITE.com/wp-admin/maint/repair.php Links: WordPress Database Name List: https://codex.wordpress.org/Editing_wp-config.php#Possible_DB_HOST_values Before the "Step 3: Restoring the default WordPress files" part of the video, you may want to backup the wp-config.php file and the wp-content folder from your existing site via ftp client (ex. Filezilla). I can't edit the video to demonstrate, but here is a link to help with that: https://wordpress.org/support/article/backing-up-your-wordpress-files/ WordPress Download: https://wordpress.org/download FTP Client - WinSCP: https://winscp.net/eng/docs/free_ftp_client_for_windows