Error establishing a database connection WordPress

The most common reason for database connection error in WordPress is the database name and password and the server name. Login to your hosting server and access the file wp-config.php and download a copy to your desktop. Check the database login credentials and upload the file again. The issue that I had was the server name was changed in

User Registration – Only administrators can add new users

To allow the user to register on your site, please turn on the options “Anyone can register” in your WordPress setting. WordPress comes with built-in functionality to manage user registrations. By default, it is turned off but you can easily turn it on. Please Navigate to Dashboard1. Go to Settings2. General3. Membership 4. Check Anyone