How to Fix White Screen and Database Errors in WordPress

1. White Screen Issue

Problem:

Your website shows a completely blank white page.

Causes:

  • Plugin conflict
  • Theme issue
  • Memory limit problem

Solution:

  • Disable all plugins and Activate plugins one by one 

Steps:

  • Login to WordPress Admin
  • Go to Plugins → Installed Plugins
  • Select all plugins
  • Choose Deactivate → Click Apply
  • Switch to the default theme 

Steps:

  1. Go to Appearance → Themes
  2. Activate default theme
  • Increase memory Limit

 

2. Database Connection Error

Problem:

WordPress cannot establish a connection with the database.

Common Causes:

  • Incorrect database credentials

  • Database server is down or unreachable

Solutions:

A. Check Database Credentials

Verify the database name, username, password, and host in the wp-config.php file.

B. Restart the MySQL Service

If the database server is not running, restart MySQL.

Command (Linux):

sudo systemctl restart mysql