Some times I am getting the error "Error establishing a database connection" while opening my wordpress paid blog. I have given correct "username" and "password" on "config.php" file. Can anyone help me to fix this.
@moneycms, yes I recheck my database, have correct details. @nabil_kadimi can you please give me more details about "database server" .
the database server might be under high load. The database server can be on the same server that hosts your website it's that thing identified by define('DB_HOST', 'localhost'); in wp-config.php if this line contains localhost your database is hosted on the same physical server of your website, otherwise it might contain a number like 123.123.123.123 which would mean it's hosted on a separate server. if it gives you the error message only sometimes it's probably a high load issue and there's not much you can do about it if not opening a ticket with your host asking them to check the issue. Even if your websites aren't getting high traffic volumes, others on the same servers might be using most of the resources, this is the only big problem of shared hosting.