You need to get that information from your host. Usually, ‘localhost’ works but sometimes it needs to be an IP like ‘127.0.0.1’. But it depends entirely on how your host has things set up. You need to ask them.
Refer to the section “Possible DB_HOST values” in http://codex.wordpress.org/Editing_wp-config.php
I’m facing this type of error. how i escape from it?
(Can’t select database
We were able to connect to the database server (which means your username and password is okay) but not able to select the MySQL database.
Are you sure it exists?
Does the user sumair have permission to use the MySQL database?
On some systems the name of your database is prefixed with your username, so it would be like username_MySQL. Could that be the problem?)
This pretty much says it all:
We were able to connect to the database server (which means your username and password is okay) but not able to select the MySQL database.
Are you sure it exists?
Does the user sumair have permission to use the MySQL database?
On some systems the name of your database is prefixed with your username, so it would be like username_MySQL. Could that be the problem?)
The problem was :
I HAD CHANGED THE LOCAL HOST to A PUBLIC IP
thank you all , the problem resolved.