Common issues with WordPress and their Fixes
Check the following factors to resolve the issue.
1. If you are getting a database connection problem, then go to wp-config.php file and gather the information about the database settings and the database user login details.
Cross check whether the login credentials are working fine or not.
2. Secondly ensure that you have given the appropriate privileges to the assigned database user.
3. You can check whether the SiteURL defined for the WordPress is set correctly. You can edit the SiteURL by accessing the WordPress admin panel. You can also change it by using MySQL command prompt.
>> Use the following command to change the SiteURL: