There are only 4 parameters. You have one or more wrong.
- db name
- db user
- db password
- db host
I recently changed my host provider from hostgator to 000webhost.com could that be the cause of the problem since I revised my credentials and they are correct for the mysql user name, host and password?
That could be the issue. Ask them what you should use for the DB host.
Hello,
As per your query, go to wp-config.php file and check for db_name, db_user, db_password, db_host.
Enter the data as per the database and username assigned in your hosting. Also check for the table prefix ex: wp_ in the database tables. Always make sure that hosting provider’s cpanel prefix is correctly setup in database name.
db_host = ‘localhost’ (in Linux Hosting)
db_host = ‘<Database_server_IP_address>’ (in Windows Hosting)
Let me know if you still face issues even after doing all this.
Regards,
Rachith
Take a look at this too (try looking for your host here, otherwise, contact them): https://codex.wordpress.org/Editing_wp-config.php#Possible_DB_HOST_values